TESTING/LIN/dptt02.f(3)
πΈ NAME πΈ
okay bestie, welcome to the Library Functions Manual page for TESTING/LIN/dptt02.f β it's a LAPACK test routine that does a residual check for a symmetric tridiagonal solve. It's giving "trust but verify" energy, and honestly? iconic. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines
subroutine dptt02 (n, nrhs, d, e, x, ldx, b, ldb, resid)βDPTT02
π«Ά Function/Subroutine Documentation π«Ά
subroutine dptt02 (integer n, integer nrhs, double precision, dimension( * )
d, double precision, dimension( * ) e, double precision, dimension( ldx,
* ) x, integer ldx, double precision, dimension( ldb, * ) b, integer
ldb, double precision resid)
DPTT02
β¨ Purpose β¨
DPTT02 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. π
π Parameters π
NβINTEGER; the order of the matrixA. πNRHSβINTEGER; the number of right hand sides, i.e., the number of columns of the matricesBandX. It has to satisfyNRHS >= 0. π«ΆDβDOUBLE PRECISIONarray, dimension(N); thendiagonal elements of the tridiagonal matrixA. βEβDOUBLE PRECISIONarray, dimension(N-1); the(n-1)subdiagonal elements of the tridiagonal matrixA. π¦XβDOUBLE PRECISIONarray, dimension(LDX,NRHS); thenbynrhsmatrix of solution vectorsX. πLDXβINTEGER; the leading dimension of the arrayX. NeedsLDX >= max(1,N). β¨BβDOUBLE PRECISIONarray, dimension(LDB,NRHS); on entry, thenbynrhsmatrix of right hand side vectorsB. On exit,Bis overwritten with the differenceB - A*X. πLDBβINTEGER; the leading dimension of the arrayB. NeedsLDB >= max(1,N). πRESIDβDOUBLE PRECISION; it'snorm(B - A*X) / (norm(A) * norm(X) * EPS). π₯
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π¦ Definition π¦
Definition at line 103 of file dptt02.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. π€
okay bestie, that's the whole page β LAPACK Version 3.12.0, source TESTING/LIN/dptt02.f(3), mwah π
π¦ 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