1ZGESV(1) LAPACK driver routine (version 3.2) ZGESV(1)
2
3
4
6 ZGESV - computes the solution to a complex system of linear equations
7 A * X = B,
8
10 SUBROUTINE ZGESV( N, NRHS, A, LDA, IPIV, B, LDB, INFO )
11
12 INTEGER INFO, LDA, LDB, N, NRHS
13
14 INTEGER IPIV( * )
15
16 COMPLEX*16 A( LDA, * ), B( LDB, * )
17
19 ZGESV computes the solution to a complex system of linear equations
20 A * X = B, where A is an N-by-N matrix and X and B are N-by-NRHS
21 matrices. The LU decomposition with partial pivoting and row inter‐
22 changes is used to factor A as
23 A = P * L * U,
24 where P is a permutation matrix, L is unit lower triangular, and U is
25 upper triangular. The factored form of A is then used to solve the
26 system of equations A * X = B.
27
29 N (input) INTEGER
30 The number of linear equations, i.e., the order of the matrix
31 A. N >= 0.
32
33 NRHS (input) INTEGER
34 The number of right hand sides, i.e., the number of columns of
35 the matrix B. NRHS >= 0.
36
37 A (input/output) COMPLEX*16 array, dimension (LDA,N)
38 On entry, the N-by-N coefficient matrix A. On exit, the fac‐
39 tors L and U from the factorization A = P*L*U; the unit diago‐
40 nal elements of L are not stored.
41
42 LDA (input) INTEGER
43 The leading dimension of the array A. LDA >= max(1,N).
44
45 IPIV (output) INTEGER array, dimension (N)
46 The pivot indices that define the permutation matrix P; row i
47 of the matrix was interchanged with row IPIV(i).
48
49 B (input/output) COMPLEX*16 array, dimension (LDB,NRHS)
50 On entry, the N-by-NRHS matrix of right hand side matrix B. On
51 exit, if INFO = 0, the N-by-NRHS solution matrix X.
52
53 LDB (input) INTEGER
54 The leading dimension of the array B. LDB >= max(1,N).
55
56 INFO (output) INTEGER
57 = 0: successful exit
58 < 0: if INFO = -i, the i-th argument had an illegal value
59 > 0: if INFO = i, U(i,i) is exactly zero. The factorization
60 has been completed, but the factor U is exactly singular, so
61 the solution could not be computed.
62
63
64
65 LAPACK driver routine (version 3.N2o)vember 2008 ZGESV(1)