SRC/sgtrfs.f(3)
π©· SRC/sgtrfs.f π©·
okay so this page is from the Library Functions Manual, and the title is literally SRC/sgtrfs.f β welcome to the tridiagonal solver corner of the group chat. π
πΈ NAME πΈ
SRC/sgtrfs.f β that's the name, bestie. No cap. β¨
β¨ SYNOPSIS β¨
π Functions/Subroutines π
This is the callable icon:
subroutine sgtrfs (trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv,
b, ldb, x, ldx, ferr, berr, work, iwork, info)
SGTRFS
π Function/Subroutine Documentation π
The full signature glow-up is:
subroutine sgtrfs (character trans, integer n, integer nrhs, real,
dimension( * ) dl, real, dimension( * ) d, real, dimension( * ) du,
real, dimension( * ) dlf, real, dimension( * ) df, real, dimension( * )
duf, real, dimension( * ) du2, integer, dimension( * ) ipiv, real,
dimension( ldb, * ) b, integer ldb, real, dimension( ldx, * ) x, integer
ldx, real, dimension( * ) ferr, real, dimension( * ) berr, real,
dimension( * ) work, integer, dimension( * ) iwork, integer info)
SGTRFS
π Purpose π
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. that's the assignment, and it ate. π₯
π Parameters π
TRANSβTRANS is CHARACTER*1. Specifies 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)
NβN is INTEGER. The order of the matrix A.N >= 0.NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matrix B.NRHS >= 0.DLβDL is REAL array, dimension (N-1). The (n-1) subdiagonal elements of A.DβD is REAL array, dimension (N). The diagonal elements of A.DUβDU is REAL array, dimension (N-1). The (n-1) superdiagonal elements of A.DLFβDLF is REAL array, dimension (N-1). The (n-1) multipliers that define the matrix L from the LU factorization of A as computed by SGTTRF.DFβDF is REAL array, dimension (N). The n diagonal elements of the upper triangular matrix U from the LU factorization of A.DUFβDUF is REAL array, dimension (N-1). The (n-1) elements of the first superdiagonal of U.DU2βDU2 is REAL array, dimension (N-2). The (n-2) elements of the second superdiagonal of U.IPIVβIPIV is INTEGER array, dimension (N). The pivot indices; for1 <= i <= n, row i of the matrix was interchanged with rowIPIV(i).IPIV(i)will always be either i or i+1;IPIV(i) = iindicates a row interchange was not required.BβB is REAL array, dimension (LDB,NRHS). The right hand side matrix B.LDBβLDB is INTEGER. The leading dimension of the array B.LDB >= max(1,N).XβX is REAL array, dimension (LDX,NRHS). On entry, the solution matrix X, as computed by SGTTRS. On exit, the improved solution matrix X.LDXβLDX is INTEGER. The leading dimension of the array X.LDX >= max(1,N).FERRβFERR is REAL array, dimension (NRHS). The estimated forward error bound for each solution vectorX(j)(the j-th column of the solution matrix X). IfXTRUEis the true solution corresponding toX(j),FERR(j)is an estimated upper bound for the magnitude of the largest element in(X(j) - XTRUE)divided by the magnitude of the largest element inX(j). The estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error.BERRβBERR is REAL array, dimension (NRHS). The componentwise relative backward error of each solution vectorX(j)(i.e., the smallest relative change in any element of A or B that makesX(j)an exact solution).WORKβWORK is REAL array, dimension (3*N).IWORKβIWORK is INTEGER array, dimension (N).INFOβINFO is INTEGER.= 0: successful exit;< 0: ifINFO = -i, the i-th argument had an illegal value.
π§ Internal Parameters π§
ITMAX is the maximum number of steps of iterative refinement. periodt. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 206 of file sgtrfs.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
mwah π signing off with the footer energy: LAPACK Version 3.12.0, SRC/sgtrfs.f(3). (There's no extra date in this footer, bestie β don't come for me.) π«Ά
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms