/home/abui...RC/sptsv.f(3)
π /home/abui...RC/sptsv.f(3) β Library Functions Manual β¨
okay so bestie, this is a page straight out of the LAPACK 3.12.0 Library Functions Manual, and it's giving very specific Fortran subroutine energy. Buckle in π
The full path of the thing we're talking about is, and I am not making this up:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/sptsv.f
iconic. unhinged. love that for us π
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sptsv.f
like yes ma'am that's the whole name, that's the whole vibe, no notes π«Ά
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SPTSV (n, nrhs, d, e, b, ldb, info)β SPTSV computes the solution to system of linear equationsA * X = Bfor PT matrices
β Function/Subroutine Documentation β
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 π«
π Purpose:
!>
!> 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.
!>
so basically: real system, symmetric positive definite tridiagonal matrix, and it factors A as A = L*D*L**T then uses that factored form to actually solve the thing. main character math honestly ππ₯
π Parameters
NβN is INTEGER, the order of the matrixA.N >= 0. lowkey the size of everything, no cap.NRHSβNRHS is INTEGER, the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0. yes it's literally how many B's you got πDβD is REAL array, dimension (N). On entry, the n diagonal elements of the tridiagonal matrixA. On exit, the n diagonal elements of the diagonal matrixDfrom the factorizationA = L*D*L**T. so it goes in as A's diagonal and comes out as D's diagonal β glow-up arc fr β¨EβE is REAL array, 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. (E can also be regarded as the superdiagonal of the unit bidiagonal factorUfrom theU**T*D*Ufactorization ofA.) like it's serving double duty depending on how you look at it π¦BβB is REAL array, dimension (LDB,NRHS). On entry, the N-by-NRHS right hand side matrixB. On exit, ifINFO = 0, the N-by-NRHS solution matrixX. it literally transforms from problem to answer, we love a character development moment πLDBβLDB is INTEGER, the leading dimension of the arrayB.LDB >= max(1,N). do not skimp on this one bestie πINFOβINFO is INTEGER= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, the leading principal minor of order i is not positive, and the solution has not been computed. The factorization has not been completed unlessi = N.
ok so real talk: that> 0case means your matrix wasn't playing nice β the solution is not computed, and the factorization is left unfinished unlessi = N. no silent failing here, she tells you π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad came together for this one π«Άπ
Definition at line 113 of file sptsv.f.
π§ Author (again, but doxygen's version)
Generated automatically by Doxygen for LAPACK from the source code. not a human, just a robot doing its little docs thing π€β¨
and that's the whole page!! generated with love by Doxygen for LAPACK, straight from the source code β LAPACK, Version 3.12.0, and the header/footer said /home/abui...RC/sptsv.f(3) in case you were wondering where we came from ππ bye bestie, go solve some tridiagonal systems!!
π¦ 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