SPTT02(3)
okay bestie, welcome to sptt02.f(3) in the Library Functions Manual β yes, the manual name is folded in right here instead of copying that weird header line. This is the page for the Fortran file and its routine, and it's lowkey iconic.
πΈ NAME πΈ
This page is for the Fortran file at:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/sptt02.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine SPTT02 (n, nrhs, d, e, x, ldx, b, ldb, resid)
SPTT02
π¦ Function/Subroutine Documentation π¦
subroutine SPTT02 (integer n, integer nrhs, real, dimension( * ) d, real,
dimension( * ) e, real, dimension( ldx, * ) x, integer ldx, real,
dimension( ldb, * ) b, integer ldb, real resid)
SPTT02
π Purpose π
okay so SPTT02 computes the residual for the solution to a symmetric tridiagonal system of equations:
RESID = norm(B - A*X) / (norm(A) * norm(X) * EPS),
where EPS is the machine epsilon. slay, that's the whole purpose π
π Parameters π
NβN is INTEGER; the order of the matrixA.NRHSβNRHS is INTEGER; the number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >= 0.DβD is REAL array, dimension (N); thendiagonal elements of the tridiagonal matrixA.EβE is REAL array, dimension (N-1); the(n-1)subdiagonal elements of the tridiagonal matrixA.XβX is REAL array, dimension (LDX,NRHS); thenbynrhsmatrix of solution vectorsX.LDXβLDX is INTEGER; the leading dimension of the arrayX.LDX >= max(1,N).BβB is REAL array, dimension (LDB,NRHS); on entry, thenbynrhsmatrix of right hand side vectorsB. On exit,Bis overwritten with the differenceB - A*X.LDBβLDB is INTEGER; the leading dimension of the arrayB.LDB >= max(1,N).RESIDβRESID is REAL;norm(B - A*X) / (norm(A) * norm(X) * EPS).
π«Ά Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 103 of file sptt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole page bestie β the footer source/version sign-off is LAPACK Version 3.12.0 and /home/abui...IN/sptt02.f(3), so take that and go slay your linear algebra πβ¨
π¦ 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