|
|
◆ zhetri()
| void zhetri |
( |
char |
uplo, |
|
|
int |
n, |
|
|
int |
lda, |
|
|
doublecomplex |
a[], |
|
|
int |
ipiv[], |
|
|
doublecomplex |
work[], |
|
|
int * |
info |
|
) |
| |
Inverse of a Hermitian matrix
- Purpose
- This routine computes the inverse of a Hermitian matrix A using the factorization A = U*D*U^H or A = L*D*L^H computed by zhetrf.
- Parameters
-
| [in] | uplo | Specifies whether the details of the factorization are stored as an upper or lower triangular matrix.
= 'U': Upper triangular, form is A = U*D*U^H.
= 'L': Lower triangular, form is A = L*D*L^H. |
| [in] | n | Order of the matrix A. (n >= 0) (If n = 0, returns without computation) |
| [in] | lda | Leading dimension of the two dimensional array a[][]. (lda >= max(1, n)) |
| [in,out] | a[] | Array a[la][lda] (la >= n)
[in] The block diagonal matrix D and the multipliers used to obtain the factor U or L as computed by zhetrf.
[out] If info = 0, the (Hermitian) inverse of the original matrix A. The upper or lower triangular part of the inverse is formed and the other part of a[][] below or above the diagonal is not referenced in accordance with uplo. |
| [in] | ipiv[] | Array ipiv[lipiv] (lipiv >= n)
Details of the interchanges and the block structure of D as determined by zhetrf. |
| [out] | work[] | Array work[lwork] (lwork >= n)
Work array. |
| [out] | info | = 0: Successful exit
= -1: The argument uplo had an illegal value (uplo != 'U' nor 'L')
= -2: The argument n had an illegal value (n < 0)
= -3: The argument lda had an illegal value (lda < max(1, n))
= i > 0: The i-th element of D is exactly zero; the matrix is singular and its inverse could not be computed. |
- Reference
- LAPACK
|