ptsv#
Functions
-
void sptsv(const INT n, const INT nrhs, f32 *restrict D, f32 *restrict E, f32 *restrict B, const INT ldb, INT *info)#
SPTSV computes the solution to a real system of linear equations A*X = B, where A is an N-by-N symmetric positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**T, and the factored form of A is then used to solve the system of equations.
Parameters
innThe 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.
inoutDDouble precision array, dimension (n). On entry, the n diagonal elements of the tridiagonal matrix A. On exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**T.
inoutEDouble precision array, dimension (n-1). On entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. On exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**T factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**T*D*U factorization of A.)
inoutBDouble precision array, dimension (ldb, nrhs). On entry, the N-by-NRHS right hand side matrix B. On exit, if info = 0, the N-by-NRHS solution matrix X.
inldbThe leading dimension of the array B. ldb >= max(1,n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, the leading principal minor of order i is not positive, and the solution has not been computed. The factorization has not been completed unless i = n.
void sptsv(
const INT n,
const INT nrhs,
f32* restrict D,
f32* restrict E,
f32* restrict B,
const INT ldb,
INT* info
);
Functions
-
void dptsv(const INT n, const INT nrhs, f64 *restrict D, f64 *restrict E, f64 *restrict B, const INT ldb, INT *info)#
DPTSV computes the solution to a real system of linear equations A*X = B, where A is an N-by-N symmetric positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**T, and the factored form of A is then used to solve the system of equations.
Parameters
innThe 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.
inoutDDouble precision array, dimension (n). On entry, the n diagonal elements of the tridiagonal matrix A. On exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**T.
inoutEDouble precision array, dimension (n-1). On entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. On exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**T factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**T*D*U factorization of A.)
inoutBDouble precision array, dimension (ldb, nrhs). On entry, the N-by-NRHS right hand side matrix B. On exit, if info = 0, the N-by-NRHS solution matrix X.
inldbThe leading dimension of the array B. ldb >= max(1,n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, the leading principal minor of order i is not positive, and the solution has not been computed. The factorization has not been completed unless i = n.
void dptsv(
const INT n,
const INT nrhs,
f64* restrict D,
f64* restrict E,
f64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void cptsv(const INT n, const INT nrhs, f32 *restrict D, c64 *restrict E, c64 *restrict B, const INT ldb, INT *info)#
CPTSV computes the solution to a complex system of linear equations A*X = B, where A is an N-by-N Hermitian positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**H, and the factored form of A is then used to solve the system of equations.
Parameters
innThe 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.
inoutDSingle precision array, dimension (n). On entry, the n diagonal elements of the tridiagonal matrix A. On exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**H.
inoutESingle complex array, dimension (n-1). On entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. On exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**H factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**H*D*U factorization of A.)
inoutBSingle complex array, dimension (ldb, nrhs). On entry, the N-by-NRHS right hand side matrix B. On exit, if info = 0, the N-by-NRHS solution matrix X.
inldbThe leading dimension of the array B. ldb >= max(1,n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, the leading principal minor of order i is not positive, and the solution has not been computed. The factorization has not been completed unless i = n.
void cptsv(
const INT n,
const INT nrhs,
f32* restrict D,
c64* restrict E,
c64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void zptsv(const INT n, const INT nrhs, f64 *restrict D, c128 *restrict E, c128 *restrict B, const INT ldb, INT *info)#
ZPTSV computes the solution to a complex system of linear equations A*X = B, where A is an N-by-N Hermitian positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**H, and the factored form of A is then used to solve the system of equations.
Parameters
innThe 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.
inoutDDouble precision array, dimension (n). On entry, the n diagonal elements of the tridiagonal matrix A. On exit, the n diagonal elements of the diagonal matrix D from the factorization A = L*D*L**H.
inoutEDouble complex array, dimension (n-1). On entry, the (n-1) subdiagonal elements of the tridiagonal matrix A. On exit, the (n-1) subdiagonal elements of the unit bidiagonal factor L from the L*D*L**H factorization of A. (E can also be regarded as the superdiagonal of the unit bidiagonal factor U from the U**H*D*U factorization of A.)
inoutBDouble complex array, dimension (ldb, nrhs). On entry, the N-by-NRHS right hand side matrix B. On exit, if info = 0, the N-by-NRHS solution matrix X.
inldbThe leading dimension of the array B. ldb >= max(1,n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
> 0: if info = i, the leading principal minor of order i is not positive, and the solution has not been computed. The factorization has not been completed unless i = n.
void zptsv(
const INT n,
const INT nrhs,
f64* restrict D,
c128* restrict E,
c128* restrict B,
const INT ldb,
INT* info
);