posv#
Functions
-
void sposv(const char *uplo, const INT n, const INT nrhs, f32 *restrict A, const INT lda, f32 *restrict B, const INT ldb, INT *info)#
SPOSV computes the solution to a real system of linear equations.
where A is anA * X = B
n-by-nsymmetric positive definite matrix and X andBaren-by-nrhsmatrices.The Cholesky decomposition is used to factor A as
where U is an upper triangular matrix and L is a lower triangular matrix. The factored form of A is then used to solve the system of equations A * X = B.A = U**T * U, if uplo = 'U', or A = L * L**T, if uplo = 'L',
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations.
n>=0.innrhsThe number of right hand sides.
nrhs>=0.inoutAArray of dimension (
lda,n). On entry, the symmetric matrix A. Ifuplo='U', the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L', the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T.inldaThe leading dimension of the array
A.lda>=max(1,n).inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the leading principal minor of order k of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void sposv(
const char* uplo,
const INT n,
const INT nrhs,
f32* restrict A,
const INT lda,
f32* restrict B,
const INT ldb,
INT* info
);
Functions
-
void dposv(const char *uplo, const INT n, const INT nrhs, f64 *restrict A, const INT lda, f64 *restrict B, const INT ldb, INT *info)#
DPOSV computes the solution to a real system of linear equations.
where A is anA * X = B
n-by-nsymmetric positive definite matrix and X andBaren-by-nrhsmatrices.The Cholesky decomposition is used to factor A as
where U is an upper triangular matrix and L is a lower triangular matrix. The factored form of A is then used to solve the system of equations A * X = B.A = U**T * U, if uplo = 'U', or A = L * L**T, if uplo = 'L',
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations.
n>=0.innrhsThe number of right hand sides.
nrhs>=0.inoutAArray of dimension (
lda,n). On entry, the symmetric matrix A. Ifuplo='U', the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L', the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T.inldaThe leading dimension of the array
A.lda>=max(1,n).inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the leading principal minor of order k of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void dposv(
const char* uplo,
const INT n,
const INT nrhs,
f64* restrict A,
const INT lda,
f64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void cposv(const char *uplo, const INT n, const INT nrhs, c64 *restrict A, const INT lda, c64 *restrict B, const INT ldb, INT *info)#
CPOSV computes the solution to a complex system of linear equations.
where A is anA * X = B
n-by-nHermitian positive definite matrix and X andBaren-by-nrhsmatrices.The Cholesky decomposition is used to factor A as
where U is an upper triangular matrix and L is a lower triangular matrix. The factored form of A is then used to solve the system of equations A * X = B.A = U**H * U, if uplo = 'U', or A = L * L**H, if uplo = 'L',
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations.
n>=0.innrhsThe number of right hand sides.
nrhs>=0.inoutAArray of dimension (
lda,n). On entry, the Hermitian matrix A. Ifuplo='U', the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L', the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H.inldaThe leading dimension of the array
A.lda>=max(1,n).inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the leading principal minor of order k of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void cposv(
const char* uplo,
const INT n,
const INT nrhs,
c64* restrict A,
const INT lda,
c64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void zposv(const char *uplo, const INT n, const INT nrhs, c128 *restrict A, const INT lda, c128 *restrict B, const INT ldb, INT *info)#
ZPOSV computes the solution to a complex system of linear equations.
where A is anA * X = B
n-by-nHermitian positive definite matrix and X andBaren-by-nrhsmatrices.The Cholesky decomposition is used to factor A as
where U is an upper triangular matrix and L is a lower triangular matrix. The factored form of A is then used to solve the system of equations A * X = B.A = U**H * U, if uplo = 'U', or A = L * L**H, if uplo = 'L',
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations.
n>=0.innrhsThe number of right hand sides.
nrhs>=0.inoutAArray of dimension (
lda,n). On entry, the Hermitian matrix A. Ifuplo='U', the leadingn-by-nupper triangular part of A contains the upper triangular part of the matrix A, and the strictly lower triangular part of A is not referenced. Ifuplo='L', the leadingn-by-nlower triangular part of A contains the lower triangular part of the matrix A, and the strictly upper triangular part of A is not referenced. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H.inldaThe leading dimension of the array
A.lda>=max(1,n).inoutBArray of dimension (
ldb,nrhs). On entry, then-by-nrhsright hand side matrixB. On exit, ifinfo=0, then-by-nrhssolution matrix X.inldbThe leading dimension of the array
B.ldb>=max(1,n).outinfoinfo=0: successful exitinfo<0: ifinfo=-k, the k-th argument had an illegal valueinfo>0: ifinfo=k, the leading principal minor of order k of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void zposv(
const char* uplo,
const INT n,
const INT nrhs,
c128* restrict A,
const INT lda,
c128* restrict B,
const INT ldb,
INT* info
);