TESTING/LIN/dgtt02.f(3)
π NAME π
okay so this page is TESTING/LIN/dgtt02.f β yes, that whole path is the manual page name, bestie β and it's all about the subroutine dgtt02. It's giving linear algebra test-subroutine main character energy, and we're obsessed. πβ¨
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
dgtt02β the one and only subroutine on this page, and it ate.
subroutine dgtt02 (trans, n, nrhs, dl, d, du, x, ldx, b, ldb, resid)
DGTT02
πΈ Function/Subroutine Documentation πΈ
Hereβs the full signature, literally exactly as the page gives it β no cap, every type and dimension stays put:
subroutine dgtt02 (character trans, integer n, integer nrhs, double
precision, dimension( * ) dl, double precision, dimension( * ) d, double
precision, dimension( * ) du, double precision, dimension( ldx, * ) x,
integer ldx, double precision, dimension( ldb, * ) b, integer ldb,
double precision resid)
DGTT02
π Purpose π
DGTT02 computes the residual for the solution to a tridiagonal system of equations:
RESID = norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS),
where EPS is the machine epsilon. The norm used is the 1-norm. Slay. π
π Parameters π
TRANSβCHARACTER; specifies the form of the residual, and the options are giving very specific vibes:'N':B - A * X (No transpose)'T':B - A**T * X (Transpose)'C':B - A**H * X (Conjugate transpose = Transpose)
NβINTEGER; the order of the matrixA.N >= 0.NRHSβINTEGER; the number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.DLβDOUBLE PRECISIONarray, dimension(N-1); the(n-1)sub-diagonal elements ofA.DβDOUBLE PRECISIONarray, dimension(N); the diagonal elements ofA.DUβDOUBLE PRECISIONarray, dimension(N-1); the(n-1)super-diagonal elements ofA.XβDOUBLE PRECISIONarray, dimension(LDX,NRHS); the computed solution vectorsX.LDXβINTEGER; the leading dimension of the arrayX.LDX >= max(1,N).BβDOUBLE PRECISIONarray, dimension(LDB,NRHS). On entry, the right hand side vectors for the system of linear equations. On exit,Bis overwritten with the differenceB - op(A)*X.
heads up from the page, bestie: B gets overwritten on exit, so donβt expect the original right hand side to still be sitting there like nothing happened. π
LDBβINTEGER; the leading dimension of the arrayB.LDB >= max(1,N).RESIDβDOUBLE PRECISION;norm(B - op(A)*X) / (norm(op(A)) * norm(X) * EPS).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file dgtt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, thatβs the whole page π β sourced from LAPACK Version 3.12.0, page TESTING/LIN/dgtt02.f(3). The footer didnβt give us a date, so no invented calendar energy here β just pure tridiagonal residual realness. Periodt. β¨π
π«Ά
π¦ 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