|
|
◆ zgetrs()
| void zgetrs |
( |
char |
trans, |
|
|
int |
n, |
|
|
int |
nrhs, |
|
|
int |
lda, |
|
|
doublecomplex |
a[], |
|
|
int |
ipiv[], |
|
|
int |
ldb, |
|
|
doublecomplex |
b[], |
|
|
int * |
info |
|
) |
| |
Solution to LU factorized system of linear equations AX = B, ATX = B or AHX = B for a complex matrix
- Purpose
- This routine solves a system of linear equations
A * X = B, A^T * X = B or A^H * X = B
with a complex n x n matrix A using the LU factorization computed by zgetrf.
- Parameters
-
| [in] | trans | Specifies the form of the system of equations:
= 'N': A * X = B. (no transpose)
= 'T': A^T * X = B. (transpose)
= 'C': A^H * X = B. (conjugate transpose) |
| [in] | n | Order of the matrix A. (n >= 0) (If n = 0, returns without computation) |
| [in] | nrhs | Number of right hand sides, i.e., number of columns of the matrix B. (nrhs >= 0) (If nrhs = 0, returns without computation) |
| [in] | lda | Leading dimension of the two dimensional array a[][]. (lda >= max(1, n)) |
| [in] | a[] | Array a[la][lda] (la >= n)
Factors L and U from the factorization A = P*L*U as computed by zgetrf. |
| [in] | ipiv[] | Array ipiv[lipiv] (lipiv >= n)
Pivot indices from zgetrf; for 1 <= i <= n, row i of the matrix was interchanged with row ipiv[i-1]. |
| [in] | ldb | Leading dimension of the two dimensional array b[][]. (ldb >= max(1, n)) |
| [in,out] | b[][] | Array b[lb][ldb] (lb >= nrhs)
[in] Right hand side matrix B.
[out] Solution matrix X. |
| [out] | info | = 0: Successful exit
= -1: The argument trans had an illegal value (trans != 'N', 'T' nor 'C')
= -2: The argument n had an illegal value (n < 0)
= -3: The argument nrhs had an illegal value (nrhs < 0)
= -4: The argument lda had an illegal value (lda < max(1, n))
= -7: The argument ldb had an illegal value (ldb < max(1, n)) |
- Reference
- LAPACK
|