SRC/slarrk.f(3)
π SRC/slarrk.f β like, the whole manual, bestie
okay so this is the SRC/slarrk.f page from the LAPACK Library Functions Manual, and it's genuinely one of those little helper icons that does one job and does it beautifully. no notes. β¨
β¨ SYNOPSIS β¨
Functions/Subroutines β here's the lineup:
subroutine slarrk (n, iw, gl, gu, d, e2, pivmin, reltol, w, werr, info)β SLARRK computes one eigenvalue of a symmetric tridiagonal matrix T to suitable accuracy. one eigenvalue! she's focused, she's got a niche, she's serving.
π«Ά Function/Subroutine Documentation π«Ά
slarrk
here's the full signature, character for character, don't @ me:
subroutine slarrk (integer n, integer iw, real gl, real gu, real, dimension(
* ) d, real, dimension( * ) e2, real pivmin, real reltol, real w, real
werr, integer info)
SLARRK computes one eigenvalue of a symmetric tridiagonal matrix T to suitable accuracy. that's the whole vibe. main character energy but make it numerical. π
πΈ Purpose πΈ
okay so, straight from the source:
SLARRK computes one eigenvalue of a symmetric tridiagonal matrix T to suitable accuracy. This is an auxiliary code to be called from SSTEMR.
she's an auxiliary code, meaning she's not out here doing solo shows β she's the support act for SSTEMR. respect the hustle. π
and here's the part where you gotta listen, bestie, because this is a real caveat:
To avoid overflow, the matrix must be scaled so that its largest element is no greater than overflow(1/2) * underflow(1/4) in absolute value, and for greatest accuracy, it should not be much smaller than that.
so like β scale your matrix correctly or it's giving π overflow. no cap. and if you want greatest accuracy, don't make it much smaller than that bound either. the sweet spot is real.
also, credit where credit is due:
See W. Kahan , Report CS41, Computer Science Dept., Stanford University, July 21, 1966.
we stan a citation icon. π
π¦ Parameters π¦
NβNis INTEGER. the order of the tridiagonal matrix T.N >= 0. (zero is allowed, she's inclusive.)IWβIWis INTEGER. the index of the eigenvalues to be returned. singular eigenvalue, one job, iconic.GLβGLis REAL. that's it. that's the whole description. she said "I'm REAL" and left. πGUβGUis REAL. an upper and a lower bound on the eigenvalue. (yes,GLandGUare the bound girlies βGUjust happens to also carry the label text here.)DβDis REAL array, dimension (N). thendiagonal elements of the tridiagonal matrix T. the main diagonal, literally.E2βE2is REAL array, dimension (N-1). the(n-1)squared off-diagonal elements of the tridiagonal matrix T. note the squared β these are already squared, don't square them again, I'm begging. πPIVMINβPIVMINis REAL. the minimum pivot allowed in the Sturm sequence for T.RELTOLβRELTOLis REAL. the minimum relative width of an interval. when an interval is narrower thanRELTOLtimes the larger (in magnitude) endpoint, then it is considered to be sufficiently small, i.e., converged. π Note: this should always be at leastradix*machine epsilon. always. don't skip this. π«ΆWβWis REAL. also just... REAL. no further comment. short queen. β¨WERRβWERRis REAL. the error bound on the corresponding eigenvalue approximation inW.INFOβINFOis INTEGER. the vibe check, and it only has two moods:= 0: eigenvalue converged π= -1: eigenvalue did NOT converge π
π§ Internal Parameters: π§
FUDGEβ REAL, default =2. aFUDGEto widen the Gershgorin intervals. yes it's literally called FUDGE, yes I'm obsessed, no we're not renaming it. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, fr fr. π
Definition at line 143 of file slarrk.f.
β Author (again, but meta) β
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this page β the robots did it, and honestly? slay. π€π
and that's the whole page, bestie β no skipped sections, no missing flags, nothing dropped. this file is from LAPACK, Version 3.12.0, and the page itself is SRC/slarrk.f(3). date-wise the manual doesn't stamp one on the footer, so we're just gonna say this one's timeless. πβ¨π
π¦ 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