TESTING/EIG/sstech.f(3)
β¨ NAME β¨
You're reading the TESTING/EIG/sstech.f(3) page from the Library Functions Manual, bestie. It's a LAPACK testing page, and the main character is the sstech subroutine. π
π¦ SYNOPSIS π¦
πΈ Functions/Subroutines πΈ
subroutine sstech (n, a, b, eig, tol, work, info)βSSTECH
π Function/Subroutine Documentation π
π sstech β SSTECH π
subroutine sstech (integer n, real, dimension( * ) a, real, dimension( * )
b, real, dimension( * ) eig, real tol, real, dimension( * ) work,
integer info)
SSTECH
π₯ Purpose π₯
Okay so picture T, a tridiagonal matrix: its diagonal entries are A(1), β¦, A(N), and its offdiagonal entries are B(1), β¦, B(N-1)) β yes, that double paren is in the source, and I am keeping it, no cap. π
SSTECH checks whether EIG(1), β¦, EIG(N) are actually accurate eigenvalues of T. It does this by expanding each EIG(I) into an interval [SVD(I) - EPS, SVD(I) + EPS] β yes, SVD(I), that's literally what the page says β merging overlapping intervals if there are any, and then using Sturm sequences to count and verify whether each resulting interval has the correct number of eigenvalues (it uses SSTECT for that). β¨
Here EPS = TOL*MACHEPS*MAXEIG, where MACHEPS is the machine precision and MAXEIG is the absolute value of the largest eigenvalue. π
If each interval contains the correct number of eigenvalues, INFO = 0 is returned. Otherwise, INFO is the index of the first eigenvalue in the first bad interval. Periodt. π
π Parameters π
NβNisINTEGER. The dimension of the tridiagonal matrixT. π¦AβAisREAL array, dimension (N). The diagonal entries of the tridiagonal matrixT. πBβBisREAL array, dimension (N-1). The offdiagonal entries of the tridiagonal matrixT. β¨EIGβEIGisREAL array, dimension (N). The purported eigenvalues to be checked. πTOLβTOLisREAL. Error tolerance for checking, a multiple of the machine precision. πWORKβWORKisREAL array, dimension (N). π«ΆINFOβINFOisINTEGER:0if the eigenvalues are all correct (to within1 +- TOL*MACHEPS*MAXEIG)>0if the interval containing theINFO-th eigenvalue contains the incorrect number of eigenvalues.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 100 of file sstech.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
ok bye bestie π β footer vibes: LAPACK Version 3.12.0, page TESTING/EIG/sstech.f(3). The footer doesn't list a separate date, so I'm not making one up fr fr. π
π¦ 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