ppsv#
Functions
-
void sppsv(const char *uplo, const INT n, const INT nrhs, f32 *restrict AP, f32 *restrict B, const INT ldb, INT *info)#
SPPSV computes the solution to a real system of linear equations.
where A is anA * X = B
n-by-nsymmetric positive definite matrix stored in packed format 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',
- Further Details:
The packed storage scheme is illustrated by the following example when
n=4,uplo='U':Two-dimensional storage of the symmetric matrix A:
a00 a01 a02 a03 a11 a12 a13 a22 a23 (aij = conjg(aji)) a33Packed storage of the upper triangle of A:
AP = [ a00, a01, a11, a02, a12, a22, a03, a13, a23, a33 ]
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations, i.e., the order of the matrix A.
n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = A(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = A(i,j)forj<=i<=n-1. See below for further details. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, in the same storage format as A.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=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, the leading principal minor of order i of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void sppsv(
const char* uplo,
const INT n,
const INT nrhs,
f32* restrict AP,
f32* restrict B,
const INT ldb,
INT* info
);
Functions
-
void dppsv(const char *uplo, const INT n, const INT nrhs, f64 *restrict AP, f64 *restrict B, const INT ldb, INT *info)#
DPPSV computes the solution to a real system of linear equations.
where A is anA * X = B
n-by-nsymmetric positive definite matrix stored in packed format 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',
- Further Details:
The packed storage scheme is illustrated by the following example when
n=4,uplo='U':Two-dimensional storage of the symmetric matrix A:
a00 a01 a02 a03 a11 a12 a13 a22 a23 (aij = conjg(aji)) a33Packed storage of the upper triangle of A:
AP = [ a00, a01, a11, a02, a12, a22, a03, a13, a23, a33 ]
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations, i.e., the order of the matrix A.
n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the upper or lower triangle of the symmetric matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = A(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = A(i,j)forj<=i<=n-1. See below for further details. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**T*U or A = L*L**T, in the same storage format as A.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=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, the leading principal minor of order i of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void dppsv(
const char* uplo,
const INT n,
const INT nrhs,
f64* restrict AP,
f64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void cppsv(const char *uplo, const INT n, const INT nrhs, c64 *restrict AP, c64 *restrict B, const INT ldb, INT *info)#
CPPSV computes the solution to a complex system of linear equations.
where A is anA * X = B
n-by-nHermitian positive definite matrix stored in packed format 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',
- Further Details:
The packed storage scheme is illustrated by the following example when
n=4,uplo='U':Two-dimensional storage of the Hermitian matrix A:
a00 a01 a02 a03 a11 a12 a13 a22 a23 (aij = conjg(aji)) a33Packed storage of the upper triangle of A:
AP = [ a00, a01, a11, a02, a12, a22, a03, a13, a23, a33 ]
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations, i.e., the order of the matrix A.
n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = A(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = A(i,j)forj<=i<=n-1. See below for further details. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, in the same storage format as A.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=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, the leading principal minor of order i of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void cppsv(
const char* uplo,
const INT n,
const INT nrhs,
c64* restrict AP,
c64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void zppsv(const char *uplo, const INT n, const INT nrhs, c128 *restrict AP, c128 *restrict B, const INT ldb, INT *info)#
ZPPSV computes the solution to a complex system of linear equations.
where A is anA * X = B
n-by-nHermitian positive definite matrix stored in packed format 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',
- Further Details:
The packed storage scheme is illustrated by the following example when
n=4,uplo='U':Two-dimensional storage of the Hermitian matrix A:
a00 a01 a02 a03 a11 a12 a13 a22 a23 (aij = conjg(aji)) a33Packed storage of the upper triangle of A:
AP = [ a00, a01, a11, a02, a12, a22, a03, a13, a23, a33 ]
Parameters
inuplo'U': Upper triangle of A is stored'L': Lower triangle of A is stored
innThe number of linear equations, i.e., the order of the matrix A.
n>=0.innrhsThe number of right hand sides, i.e., the number of columns of the matrix
B.nrhs>=0.inoutAPArray of dimension
n*(n+1)/2. On entry, the upper or lower triangle of the Hermitian matrix A, packed columnwise in a linear array. The j-th column of A is stored in the array AP as follows: ifuplo='U',AP[i + j*(j+1)/2] = A(i,j)for0<=i<=j; ifuplo='L',AP[i + j*(2*n-j-1)/2] = A(i,j)forj<=i<=n-1. See below for further details. On exit, ifinfo=0, the factor U or L from the Cholesky factorization A = U**H*U or A = L*L**H, in the same storage format as A.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=-i, the i-th argument had an illegal valueinfo>0: ifinfo=i, the leading principal minor of order i of A is not positive, so the factorization could not be completed, and the solution has not been computed.
void zppsv(
const char* uplo,
const INT n,
const INT nrhs,
c128* restrict AP,
c128* restrict B,
const INT ldb,
INT* info
);