SPTTRF(3)
β¨ SPTTRF π (like, the whole glow-up)
okay so real talk bestie β this page is from the LAPACK library manual, and the star of the show lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/spttrf.f. yes that's a real path, no I did not make it up π
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/spttrf.f
that's it. that's the name. she's literally just a file path and honestly? iconic. π
π¦ SYNOPSIS π¦
Functions/Subroutines
here's the lineup, no cap:
subroutine SPTTRF (n, d, e, info)
SPTTRF
πΈ Function/Subroutine Documentation πΈ
okay so the actual signature, bestie β look at her:
subroutine SPTTRF (integer n, real, dimension( * ) d, real, dimension( * )
e, integer info)
SPTTRF
π Purpose π
!> !> SPTTRF computes the L*D*LT factorization of a real symmetric !> positive definite tridiagonal matrix A. The factorization may also !> be regarded as having the form A = UT*D*U. !>
so basically she takes your real symmetric positive definite tridiagonal matrix A and factorizes it as L*D*L**T. and if you're more of a U girlie, you can also read it as A = U**T*D*U. same energy, different vibe check. β¨
π Parameters π
okay buckle up, here's everybody:
NβN is INTEGER. she's the order of the matrixA, and the rule isN >= 0. no negatives, periodt. π«DβD is REAL array, dimension (N). on the way in, these are the n diagonal elements of the tridiagonal matrixA. on the way out? she's the n diagonal elements of the diagonal matrixDfrom theL*D*L**Tfactorization ofA. glow-up complete, honestly. πEβE is REAL array, dimension (N-1). on entry she holds the (n-1) subdiagonal elements of the tridiagonal matrixA. on exit she's the (n-1) subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA. and plot twist βEcan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**T*D*Ufactorization ofA. versatile queen! π¦
note the dimension is(N-1), notN. one less. don't come for me, that's just what she is. π
INFOβINFO is INTEGER, and she's the one who tells you how it went:= 0: successful exit. slay. β< 0: ifINFO = -k, the k-th argument had an illegal value. so like, you passed her something cursed. π> 0: ifINFO = k, the leading principal minor of order k is not positive. and here's the nuance bestie β ifk < N, the factorization could not be completed; while ifk = N, the factorization was completed, butD(N) <= 0. so close but so real. π
π Author π
the whole academic squad behind this:
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition at line 90 of file spttrf.f. β
line 90, file spttrf.f. if you were wondering where to look, there she is. π₯
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
not a human, a machine. she was born automated and she's thriving. π§
π the cute lil sign-off π
k so this little masterpiece is from LAPACK, Version 3.12.0, and the page footer path vibes were /home/abui...RC/spttrf.f(3) β the (3) ofc meaning she's a section-3 library function, iykyk. that's the whole page bestie, you ate, go factorize something tridiagonal πΈπ«Άβ¨
π¦ 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