gtrfs#
Functions
-
void sgtrfs(const char *trans, const INT n, const INT nrhs, const f32 *restrict DL, const f32 *restrict D, const f32 *restrict DU, const f32 *restrict DLF, const f32 *restrict DF, const f32 *restrict DUF, const f32 *restrict DU2, const INT *restrict ipiv, const f32 *restrict B, const INT ldb, f32 *restrict X, const INT ldx, f32 *restrict ferr, f32 *restrict berr, f32 *restrict work, INT *restrict iwork, INT *info)#
SGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and provides error bounds and backward error estimates for the solution.
Parameters
intransSpecifies the form of the system of equations: = ‘N’: A * X = B (No transpose) = ‘T’: A**T * X = B (Transpose) = ‘C’: A**H * X = B (Conjugate transpose = Transpose)
innThe order of the matrix A. n >= 0.
innrhsThe number of right hand sides. nrhs >= 0.
inDLThe (n-1) subdiagonal elements of A. Array of dimension (n-1).
inDThe diagonal elements of A. Array of dimension (n).
inDUThe (n-1) superdiagonal elements of A. Array of dimension (n-1).
inDLFThe (n-1) multipliers that define the matrix L from the LU factorization of A. Array of dimension (n-1).
inDFThe n diagonal elements of U. Array of dimension (n).
inDUFThe (n-1) elements of the first superdiagonal of U. Array of dimension (n-1).
inDU2The (n-2) elements of the second superdiagonal of U. Array of dimension (n-2).
inipivThe pivot indices. Array of dimension (n).
inBThe right hand side matrix B. Array of dimension (ldb, nrhs).
inldbThe leading dimension of B. ldb >= max(1, n).
inoutXOn entry, the solution matrix X, as computed by SGTTRS. On exit, the improved solution matrix X. Array of dimension (ldx, nrhs).
inldxThe leading dimension of X. ldx >= max(1, n).
outferrThe estimated forward error bound for each solution vector. Array of dimension (nrhs).
outberrThe componentwise relative backward error of each solution. Array of dimension (nrhs).
outworkWorkspace array of dimension (3*n).
outiworkInteger workspace array of dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void sgtrfs(
const char* trans,
const INT n,
const INT nrhs,
const f32* restrict DL,
const f32* restrict D,
const f32* restrict DU,
const f32* restrict DLF,
const f32* restrict DF,
const f32* restrict DUF,
const f32* restrict DU2,
const INT* restrict ipiv,
const f32* restrict B,
const INT ldb,
f32* restrict X,
const INT ldx,
f32* restrict ferr,
f32* restrict berr,
f32* restrict work,
INT* restrict iwork,
INT* info
);
Functions
-
void dgtrfs(const char *trans, const INT n, const INT nrhs, const f64 *restrict DL, const f64 *restrict D, const f64 *restrict DU, const f64 *restrict DLF, const f64 *restrict DF, const f64 *restrict DUF, const f64 *restrict DU2, const INT *restrict ipiv, const f64 *restrict B, const INT ldb, f64 *restrict X, const INT ldx, f64 *restrict ferr, f64 *restrict berr, f64 *restrict work, INT *restrict iwork, INT *info)#
DGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and provides error bounds and backward error estimates for the solution.
Parameters
intransSpecifies the form of the system of equations: = ‘N’: A * X = B (No transpose) = ‘T’: A**T * X = B (Transpose) = ‘C’: A**H * X = B (Conjugate transpose = Transpose)
innThe order of the matrix A. n >= 0.
innrhsThe number of right hand sides. nrhs >= 0.
inDLThe (n-1) subdiagonal elements of A. Array of dimension (n-1).
inDThe diagonal elements of A. Array of dimension (n).
inDUThe (n-1) superdiagonal elements of A. Array of dimension (n-1).
inDLFThe (n-1) multipliers that define the matrix L from the LU factorization of A. Array of dimension (n-1).
inDFThe n diagonal elements of U. Array of dimension (n).
inDUFThe (n-1) elements of the first superdiagonal of U. Array of dimension (n-1).
inDU2The (n-2) elements of the second superdiagonal of U. Array of dimension (n-2).
inipivThe pivot indices. Array of dimension (n).
inBThe right hand side matrix B. Array of dimension (ldb, nrhs).
inldbThe leading dimension of B. ldb >= max(1, n).
inoutXOn entry, the solution matrix X, as computed by DGTTRS. On exit, the improved solution matrix X. Array of dimension (ldx, nrhs).
inldxThe leading dimension of X. ldx >= max(1, n).
outferrThe estimated forward error bound for each solution vector. Array of dimension (nrhs).
outberrThe componentwise relative backward error of each solution. Array of dimension (nrhs).
outworkWorkspace array of dimension (3*n).
outiworkInteger workspace array of dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void dgtrfs(
const char* trans,
const INT n,
const INT nrhs,
const f64* restrict DL,
const f64* restrict D,
const f64* restrict DU,
const f64* restrict DLF,
const f64* restrict DF,
const f64* restrict DUF,
const f64* restrict DU2,
const INT* restrict ipiv,
const f64* restrict B,
const INT ldb,
f64* restrict X,
const INT ldx,
f64* restrict ferr,
f64* restrict berr,
f64* restrict work,
INT* restrict iwork,
INT* info
);
Functions
-
void cgtrfs(const char *trans, const INT n, const INT nrhs, const c64 *restrict DL, const c64 *restrict D, const c64 *restrict DU, const c64 *restrict DLF, const c64 *restrict DF, const c64 *restrict DUF, const c64 *restrict DU2, const INT *restrict ipiv, const c64 *restrict B, const INT ldb, c64 *restrict X, const INT ldx, f32 *restrict ferr, f32 *restrict berr, c64 *restrict work, f32 *restrict rwork, INT *info)#
CGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and provides error bounds and backward error estimates for the solution.
Parameters
intransSpecifies the form of the system of equations: = ‘N’: A * X = B (No transpose) = ‘T’: A**T * X = B (Transpose) = ‘C’: A**H * X = B (Conjugate transpose)
innThe order of the matrix A. n >= 0.
innrhsThe number of right hand sides. nrhs >= 0.
inDLThe (n-1) subdiagonal elements of A. Array of dimension (n-1).
inDThe diagonal elements of A. Array of dimension (n).
inDUThe (n-1) superdiagonal elements of A. Array of dimension (n-1).
inDLFThe (n-1) multipliers that define the matrix L from the LU factorization of A. Array of dimension (n-1).
inDFThe n diagonal elements of U. Array of dimension (n).
inDUFThe (n-1) elements of the first superdiagonal of U. Array of dimension (n-1).
inDU2The (n-2) elements of the second superdiagonal of U. Array of dimension (n-2).
inipivThe pivot indices. Array of dimension (n).
inBThe right hand side matrix B. Array of dimension (ldb, nrhs).
inldbThe leading dimension of B. ldb >= max(1, n).
inoutXOn entry, the solution matrix X, as computed by CGTTRS. On exit, the improved solution matrix X. Array of dimension (ldx, nrhs).
inldxThe leading dimension of X. ldx >= max(1, n).
outferrThe estimated forward error bound for each solution vector. Array of dimension (nrhs).
outberrThe componentwise relative backward error of each solution. Array of dimension (nrhs).
outworkWorkspace array of dimension (2*n).
outrworkReal workspace array of dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void cgtrfs(
const char* trans,
const INT n,
const INT nrhs,
const c64* restrict DL,
const c64* restrict D,
const c64* restrict DU,
const c64* restrict DLF,
const c64* restrict DF,
const c64* restrict DUF,
const c64* restrict DU2,
const INT* restrict ipiv,
const c64* restrict B,
const INT ldb,
c64* restrict X,
const INT ldx,
f32* restrict ferr,
f32* restrict berr,
c64* restrict work,
f32* restrict rwork,
INT* info
);
Functions
-
void zgtrfs(const char *trans, const INT n, const INT nrhs, const c128 *restrict DL, const c128 *restrict D, const c128 *restrict DU, const c128 *restrict DLF, const c128 *restrict DF, const c128 *restrict DUF, const c128 *restrict DU2, const INT *restrict ipiv, const c128 *restrict B, const INT ldb, c128 *restrict X, const INT ldx, f64 *restrict ferr, f64 *restrict berr, c128 *restrict work, f64 *restrict rwork, INT *info)#
ZGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and provides error bounds and backward error estimates for the solution.
Parameters
intransSpecifies the form of the system of equations: = ‘N’: A * X = B (No transpose) = ‘T’: A**T * X = B (Transpose) = ‘C’: A**H * X = B (Conjugate transpose)
innThe order of the matrix A. n >= 0.
innrhsThe number of right hand sides. nrhs >= 0.
inDLThe (n-1) subdiagonal elements of A. Array of dimension (n-1).
inDThe diagonal elements of A. Array of dimension (n).
inDUThe (n-1) superdiagonal elements of A. Array of dimension (n-1).
inDLFThe (n-1) multipliers that define the matrix L from the LU factorization of A. Array of dimension (n-1).
inDFThe n diagonal elements of U. Array of dimension (n).
inDUFThe (n-1) elements of the first superdiagonal of U. Array of dimension (n-1).
inDU2The (n-2) elements of the second superdiagonal of U. Array of dimension (n-2).
inipivThe pivot indices. Array of dimension (n).
inBThe right hand side matrix B. Array of dimension (ldb, nrhs).
inldbThe leading dimension of B. ldb >= max(1, n).
inoutXOn entry, the solution matrix X, as computed by ZGTTRS. On exit, the improved solution matrix X. Array of dimension (ldx, nrhs).
inldxThe leading dimension of X. ldx >= max(1, n).
outferrThe estimated forward error bound for each solution vector. Array of dimension (nrhs).
outberrThe componentwise relative backward error of each solution. Array of dimension (nrhs).
outworkWorkspace array of dimension (2*n).
outrworkReal workspace array of dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void zgtrfs(
const char* trans,
const INT n,
const INT nrhs,
const c128* restrict DL,
const c128* restrict D,
const c128* restrict DU,
const c128* restrict DLF,
const c128* restrict DF,
const c128* restrict DUF,
const c128* restrict DU2,
const INT* restrict ipiv,
const c128* restrict B,
const INT ldb,
c128* restrict X,
const INT ldx,
f64* restrict ferr,
f64* restrict berr,
c128* restrict work,
f64* restrict rwork,
INT* info
);