XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ zpotrs()

void zpotrs ( char  uplo,
int  n,
int  nrhs,
int  lda,
doublecomplex  a[],
int  ldb,
doublecomplex  b[],
int *  info 
)

Solution to factorized system of linear equations AX = B for a Hermitian positive definite matrix

Purpose
This routine solves a system of linear equations
A * X = B
with a Hermitian positive definite matrix A using the Cholesy factorization A = U^H*U or A = L*L^H computed by zpotrf.
Parameters
[in]uplo= 'U': Upper triangular factor U is stored in a[][].
= 'L': Lower triangular factor L is stored in a[][].
[in]nOrder of the matrix A. (n >= 0) (If n = 0, returns without computation)
[in]nrhsNumber of right hand sides, i.e., number of columns of the matrix B. (nrhs >= 0) (If nrhs = 0, returns without computation)
[in]ldaLeading dimension of the two dimensional array a[][]. (lda >= max(1, n))
[in]a[][]Array a[la][lda] (la >= n)
The triangular factor U or L from the Cholesky factorization A = U^H*U or A = L*L^H, as computed by zpotrf.
[in]ldbLeading 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 uplo had an illegal value (uplo != 'U' nor 'L')
= -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))
= -6: The argument ldb had an illegal value (ldb < max(1, n))
Reference
LAPACK