|
|
◆ zpotrf()
| void zpotrf |
( |
char |
uplo, |
|
|
int |
n, |
|
|
int |
lda, |
|
|
doublecomplex |
a[], |
|
|
int * |
info |
|
) |
| |
Cholesky factorization of a Hermitian positive definite matrix
- Purpose
- This routine computes the Cholesky factorization of a Hermitian positive definite matrix A. The factorization has the form
A = U^H * U, if uplo = 'U', or
A = L * L^H, if uplo = 'L',
where U is an upper triangular matrix and L is a lower triangular matrix.
This is the blocked version of the algorithm, calling Level 3 BLAS.
- Parameters
-
| [in] | uplo | = 'U': Upper triangle of A is stored.
= 'L': Lower triangle of A is stored. |
| [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] n x n Hermitian positive definite matrix A. The upper or lower triangular part is to be referenced in accordance with uplo.
[out] If info = 0, the factor U or L from the Cholesky factorization A = U^H*U or A = L*L^H. |
| [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 leading minor of order i is not positive definite, and the factorization could not be completed. |
- Reference
- LAPACK
|