SRC/sptsv.f(3)
π NAME π
Okay so welcome to SRC/sptsv.f(3), bestie β this is the Library Functions Manual page for SRC/sptsv.f. Thatβs the whole name. No cap, itβs a Fortran source page for an LAPACK routine, and itβs lowkey iconic. π«Ά
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine sptsv (n, nrhs, d, e, b, ldb, info)β the main character.SPTSVcomputes the solution to system of linear equationsA * X = Bfor PT matrices. Periodt. π
Hereβs the synopsis exactly as it appears:
subroutine sptsv (n, nrhs, d, e, b, ldb, info)
SPTSV computes the solution to system of linear equations A * X = B
for PT matrices
π¦ Function/Subroutine Documentation π¦
Hereβs the full signature with types, exactly as written:
subroutine sptsv (integer n, integer nrhs, real, dimension( * ) d, real,
dimension( * ) e, real, dimension( ldb, * ) b, integer ldb, integer
info)
SPTSV computes the solution to system of linear equations A * X = B for
PT matrices
And yes, the source marks the purpose and parameter blurbs with !> comment prefixes β Doxygenβs little emo bangs β but hereβs the clean tea. π
π Purpose π
Okay so SPTSV computes the solution to a real system of linear equations A*X = B, where A is an N-by-N symmetric positive definite tridiagonal matrix, and X and B are N-by-NRHS matrices.
A is factored as A = L*D*L**T, and the factored form of A is then used to solve the system of equations. Thatβs the whole plot, and it ate. π₯
πΈ Parameters πΈ
Each parameter blurb in the original is also !>-prefixed; this is the un-styled version, bestie.
N
NisINTEGERβ the order of the matrixA.N >= 0.
NRHS
NRHSisINTEGERβ the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.
D
DisREALarray, dimension(N)β on entry, thendiagonal elements of the tridiagonal matrixA. On exit, thendiagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**T.
E
EisREALarray, dimension(N-1)β on entry, the(n-1)subdiagonal elements of the tridiagonal matrixA. On exit, the(n-1)subdiagonal elements of the unit bidiagonal factorLfrom theL*D*L**Tfactorization ofA. (Ecan also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**T*D*Ufactorization ofA.)
B
BisREALarray, dimension(LDB,NRHS)β on entry, theN-by-NRHSright hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution matrixX.
LDB
LDBisINTEGERβ the leading dimension of the arrayB.LDB >= max(1,N).
INFO
INFOisINTEGER= 0: successful exit< 0: ifINFO = -i, thei-thargument had an illegal value> 0: ifINFO = i, the leading principal minor of orderiis not positive, and the solution has not been computed. The factorization has not been completed unlessi = N.
Important caveat tea: ifINFOcomes back positive, the solution has not been computed, and the factorization has not been completed unlessi = N. No cap, thatβs a real warning. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 113 of file sptsv.f.
π€ Author (generated) π€
Generated automatically by Doxygen for LAPACK from the source code.
π Cute little sign-off: this page is from LAPACK, Version 3.12.0, and itβs SRC/sptsv.f(3). The footer is giving source/version energy, no date drama, just vibes. Slay, 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