SRC/slaneg.f(3)
π SRC/slaneg.f π
Manual name: Library Functions Manual. Okay bestie, this page is literally the slaneg function's whole moment, and it's giving βI count pivots and eigenvalues.β π
β¨ NAME β¨
SRC/slaneg.f
πΈ SYNOPSIS πΈ
Functions/Subroutines
integer function slaneg (n, d, lld, sigma, pivmin, r)β SLANEG computes the Sturm count.
π¦ Function/Subroutine Documentation π¦
integer function slaneg (integer n, real, dimension( * ) d, real, dimension( * ) lld, real sigma, real pivmin, integer r)
SLANEG computes the Sturm count. β¨
π Purpose π
Okay so here's the tea: SLANEG computes the Sturm count, which is the number of negative pivots you encounter while factoring tridiagonal T - sigma I = L D L^T. This implementation works directly on the factors without forming the tridiagonal matrix T. The Sturm count is also the number of eigenvalues of T less than sigma. π
This routine is called from SLARRB.
The current routine does not use the PIVMIN parameter but rather requires IEEE-754 propagation of Infinities and NaNs. This routine also has no input range restrictions but does require default exception handling such that x/0 produces Inf when x is non-zero, and Inf/Inf produces NaN. For more information, see:
Marques, Riedy, and Voemel, SIAM Journal on Scientific Computing, v28, n5, 2006. DOI 10.1137/050641624 (Tech report version in LAWN 172 with the same title.)
π Parameters π
NβNisINTEGER. The order of the matrix. πDβDisREAL array, dimension (N). TheNdiagonal elements of the diagonal matrixD.LLDβLLDisREAL array, dimension (N-1). The(N-1)elementsL(i)*L(i)*D(i).SIGMAβSIGMAisREAL. Shift amount inT - sigma I = L D L^T.PIVMINβPIVMINisREAL. The minimum pivot in the Sturm sequence. May be used when zero pivots are encountered on non-IEEE-754 architectures.RβRisINTEGER. The twist index for the twisted factorization that is used for the negcount.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors π
- Osni Marques, LBNL/NERSC, USA
- Christof Voemel, University of California, Berkeley, USA
- Jason Riedy, University of California, Berkeley, USA
Definition at line 117 of file slaneg.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Signed off with sparkle: LAPACK, Version 3.12.0 β page SRC/slaneg.f(3). Date: not shown in the original footer, so no invented date, bestie. π«Ά
π¦ 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