gtsv#
Functions
-
void sgtsv(const INT n, const INT nrhs, f32 *restrict DL, f32 *restrict D, f32 *restrict DU, f32 *restrict B, const INT ldb, INT *info)#
SGTSV solves the equation.
where A is anA * X = B
nbyntridiagonal matrix, by Gaussian elimination with partial pivoting.Note that the equation A**T*X = B may be solved by interchanging the order of the arguments
DUandDL.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.inoutDLArray of dimension (
n-1). On entry, the (n-1) sub-diagonal elements of A. On exit,DLis overwritten by the (n-2) elements of the second super-diagonal of the upper triangular matrix U from the LU factorization of A, inDL[0], …,DL[n-3].inoutDArray of dimension (
n). On entry, the diagonal elements of A. On exit,Dis overwritten by the n diagonal elements of U.inoutDUArray of dimension (
n-1). On entry, the (n-1) super-diagonal elements of A. On exit,DUis overwritten by the (n-1) elements of the first super-diagonal of U.inoutBArray of dimension (
ldb,nrhs). On entry, thenbynrhsmatrix of right hand side matrixB. On exit, ifinfo=0, thenbynrhssolution 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, U(i,i) is exactly zero, and the solution has not been computed. The factorization has not been completed unless i = n.
void sgtsv(
const INT n,
const INT nrhs,
f32* restrict DL,
f32* restrict D,
f32* restrict DU,
f32* restrict B,
const INT ldb,
INT* info
);
Functions
-
void dgtsv(const INT n, const INT nrhs, f64 *restrict DL, f64 *restrict D, f64 *restrict DU, f64 *restrict B, const INT ldb, INT *info)#
DGTSV solves the equation.
where A is anA * X = B
nbyntridiagonal matrix, by Gaussian elimination with partial pivoting.Note that the equation A**T*X = B may be solved by interchanging the order of the arguments
DUandDL.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.inoutDLArray of dimension (
n-1). On entry, the (n-1) sub-diagonal elements of A. On exit,DLis overwritten by the (n-2) elements of the second super-diagonal of the upper triangular matrix U from the LU factorization of A, inDL[0], …,DL[n-3].inoutDArray of dimension (
n). On entry, the diagonal elements of A. On exit,Dis overwritten by the n diagonal elements of U.inoutDUArray of dimension (
n-1). On entry, the (n-1) super-diagonal elements of A. On exit,DUis overwritten by the (n-1) elements of the first super-diagonal of U.inoutBArray of dimension (
ldb,nrhs). On entry, thenbynrhsmatrix of right hand side matrixB. On exit, ifinfo=0, thenbynrhssolution 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, U(i,i) is exactly zero, and the solution has not been computed. The factorization has not been completed unless i = n.
void dgtsv(
const INT n,
const INT nrhs,
f64* restrict DL,
f64* restrict D,
f64* restrict DU,
f64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void cgtsv(const INT n, const INT nrhs, c64 *restrict DL, c64 *restrict D, c64 *restrict DU, c64 *restrict B, const INT ldb, INT *info)#
CGTSV solves the equation.
where A is anA * X = B
nbyntridiagonal matrix, by Gaussian elimination with partial pivoting.Note that the equation A**T*X = B may be solved by interchanging the order of the arguments
DUandDL.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.inoutDLArray of dimension (
n-1). On entry, the (n-1) sub-diagonal elements of A. On exit,DLis overwritten by the (n-2) elements of the second super-diagonal of the upper triangular matrix U from the LU factorization of A, inDL[0], …,DL[n-3].inoutDArray of dimension (
n). On entry, the diagonal elements of A. On exit,Dis overwritten by the n diagonal elements of U.inoutDUArray of dimension (
n-1). On entry, the (n-1) super-diagonal elements of A. On exit,DUis overwritten by the (n-1) elements of the first super-diagonal of U.inoutBArray of dimension (
ldb,nrhs). On entry, thenbynrhsmatrix of right hand side matrixB. On exit, ifinfo=0, thenbynrhssolution 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, U(i,i) is exactly zero, and the solution has not been computed. The factorization has not been completed unless i = n.
void cgtsv(
const INT n,
const INT nrhs,
c64* restrict DL,
c64* restrict D,
c64* restrict DU,
c64* restrict B,
const INT ldb,
INT* info
);
Functions
-
void zgtsv(const INT n, const INT nrhs, c128 *restrict DL, c128 *restrict D, c128 *restrict DU, c128 *restrict B, const INT ldb, INT *info)#
ZGTSV solves the equation.
where A is anA * X = B
nbyntridiagonal matrix, by Gaussian elimination with partial pivoting.Note that the equation A**T*X = B may be solved by interchanging the order of the arguments
DUandDL.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.inoutDLArray of dimension (
n-1). On entry, the (n-1) sub-diagonal elements of A. On exit,DLis overwritten by the (n-2) elements of the second super-diagonal of the upper triangular matrix U from the LU factorization of A, inDL[0], …,DL[n-3].inoutDArray of dimension (
n). On entry, the diagonal elements of A. On exit,Dis overwritten by the n diagonal elements of U.inoutDUArray of dimension (
n-1). On entry, the (n-1) super-diagonal elements of A. On exit,DUis overwritten by the (n-1) elements of the first super-diagonal of U.inoutBArray of dimension (
ldb,nrhs). On entry, thenbynrhsmatrix of right hand side matrixB. On exit, ifinfo=0, thenbynrhssolution 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, U(i,i) is exactly zero, and the solution has not been computed. The factorization has not been completed unless i = n.
void zgtsv(
const INT n,
const INT nrhs,
c128* restrict DL,
c128* restrict D,
c128* restrict DU,
c128* restrict B,
const INT ldb,
INT* info
);