TESTING/LIN/sgtt02.f(3)
β¨ NAME β¨
okay so bestie, this page is for TESTING/LIN/sgtt02.f β the manual page name is TESTING/LIN/sgtt02.f(3), and it lives in the Library Functions Manual. it's all about the Fortran subroutine sgtt02, no cap π
πΈ SYNOPSIS πΈ
π¦ Functions/Subroutines π¦
subroutine sgtt02 (trans, n, nrhs, dl, d, du, x, ldx, b, ldb, resid)
SGTT02
π§ Function/Subroutine Documentation π§
subroutine sgtt02 (character trans, integer n, integer nrhs, real,
dimension( * ) dl, real, dimension( * ) d, real, dimension( * ) du,
real, dimension( ldx, * ) x, integer ldx, real, dimension( ldb, * ) b,
integer ldb, real resid)
SGTT02
π― Purpose: π―
bestie, the whole point is this: SGTT02 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. periodt. β¨
π Parameters π
TRANSβTRANS is CHARACTER. it specifies the form of the residual:= 'N': B - A * X (No transpose)= 'T': B - A**T * X (Transpose)= 'C': B - A**H * X (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 matrices B and X.NRHS >= 0.DLβDL is REAL array, dimension (N-1). the(n-1)sub-diagonal 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)super-diagonal elements of A.XβX is REAL array, dimension (LDX,NRHS). the computed solution vectors X.LDXβLDX is INTEGER. the leading dimension of the array X.LDX >= max(1,N).BβB is REAL array, dimension (LDB,NRHS). on entry, the right hand side vectors for the system of linear equations. on exit, B is overwritten with the differenceB - op(A)*X.LDBβLDB is INTEGER. the leading dimension of the array B.LDB >= max(1,N).RESIDβRESID is REAL.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 sgtt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
bye bestie π this iconic page is source/version LAPACK / Version 3.12.0, and the manual page is TESTING/LIN/sgtt02.f(3). slay. π
π¦ 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