DGTRFS(3)
π NAME
okay so bestie, this page lives in the Library Functions Manual (that's the manual name, periodt) and it's all about this one file:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dgtrfs.f
yes the whole path is the name, that's just how Doxygen does, don't @ me π«Ά
β¨ SYNOPSIS
π Functions/Subroutines
okay so there's exactly one (1) icon here and she's carrying the whole page:
subroutine DGTRFS (trans, n, nrhs, dl, d, du, dlf, df, duf, du2, ipiv,
b, ldb, x, ldx, ferr, berr, work, iwork, info)
DGTRFS. that's her. that's the whole vibe. π¦
π¦ Function/Subroutine Documentation
π the full signature, no cap
subroutine DGTRFS (character trans, integer n, integer nrhs, double
precision, dimension( * ) dl, double precision, dimension( * ) d, double
precision, dimension( * ) du, double precision, dimension( * ) dlf,
double precision, dimension( * ) df, double precision, dimension( * )
duf, double precision, dimension( * ) du2, integer, dimension( * ) ipiv,
double precision, dimension( ldb, * ) b, integer ldb, double precision,
dimension( ldx, * ) x, integer ldx, double precision, dimension( * )
ferr, double precision, dimension( * ) berr, double precision,
dimension( * ) work, integer, dimension( * ) iwork, integer info)
DGTRFS π«Ά (she gets her name in lights twice, she earned it)
πΈ Purpose
okay so what does she actually do: DGTRFS improves the computed solution to a system of linear equations when the coefficient matrix is tridiagonal, and she also hands you error bounds and backward error estimates for the solution. that's the whole assignment and she ate. π
π Parameters
TRANS
TRANSisCHARACTER*1β she specifies the form of the system of equations, and there are exactly three moods:= 'N': A * X = Bβ No transpose= 'T': A**T * X = Bβ Transpose= 'C': A**H * X = Bβ Conjugate transpose = Transpose
N
NisINTEGERβ the order of the matrix A. constraint check:N >= 0.
NRHS
NRHSisINTEGERβ the number of right hand sides, i.e., the number of columns of the matrix B. constraint check:NRHS >= 0.
DL
DLisDOUBLE PRECISION array, dimension (N-1)β the(n-1)subdiagonal elements of A. the underlings, lowkey important.
D
DisDOUBLE PRECISION array, dimension (N)β the diagonal elements of A. main character energy, literally the diagonal.
DU
DUisDOUBLE PRECISION array, dimension (N-1)β the(n-1)superdiagonal elements of A.
DLF
DLFisDOUBLE PRECISION array, dimension (N-1)β the(n-1)multipliers that define the matrix L from the LU factorization of A as computed byDGTTRF.
DF
DFisDOUBLE PRECISION array, dimension (N)β thendiagonal elements of the upper triangular matrix U from the LU factorization of A.
DUF
DUFisDOUBLE PRECISION array, dimension (N-1)β the(n-1)elements of the first superdiagonal of U.
DU2
DU2isDOUBLE PRECISION array, dimension (N-2)β the(n-2)elements of the second superdiagonal of U.
IPIV
IPIVisINTEGER array, dimension (N)β the pivot indices; for1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i). and listen:IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. no in-between, she's decisive. π
B
BisDOUBLE PRECISION array, dimension (LDB,NRHS)β the right hand side matrix B.
LDB
LDBisINTEGERβ the leading dimension of the array B. constraint check:LDB >= max(1,N).
X
XisDOUBLE PRECISION array, dimension (LDX,NRHS)β On entry, the solution matrix X, as computed byDGTTRS. On exit, the improved solution matrix X. she goes in mid and comes out improved, that's growth. π±
LDX
LDXisINTEGERβ the leading dimension of the array X. constraint check:LDX >= max(1,N).
FERR
FERRisDOUBLE PRECISION array, dimension (NRHS)β the estimated forward error bound for each solution vectorX(j)(thej-th column of the solution matrix X). so ifXTRUEis the true solution corresponding toX(j), thenFERR(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). and ngl the estimate is as reliable as the estimate forRCOND, and is almost always a slight overestimate of the true error. she's a worrier, she rounds up. π
BERR
BERRisDOUBLE PRECISION 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
WORKisDOUBLE PRECISION array, dimension (3*N)β no further lore, that's the whole tea.
IWORK
IWORKisINTEGER array, dimension (N)β same, no extra lore.
INFO
INFOisINTEGERβ the receipts:= 0: successful exit π< 0: ifINFO = -i, thei-th argument had an illegal value π
π§ Internal Parameters
ITMAX is the maximum number of steps of iterative refinement. that's it. that's the internal parameter. she only needs one. iykyk.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
all four of them, holding her up like the icon she is π
β Definition at line 206 of file dgtrfs.f.
yes exactly, 206, don't lose it, it's load-bearing. π
π Author
Generated automatically by Doxygen for LAPACK from the source code. she wasn't hand-written, she was born that way. π§
okay bestie that's the whole page, go forth and improve some tridiagonal solutions πβ¨π
LAPACK β Version 3.12.0 β and the original footer was pointing at /home/abui...RC/dgtrfs.f(3). mwah, bye π«ΆπΈ
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms