SRC/sgttrs.f(3)
π NAME π
SRC/sgttrs.f β okay bestie, this is the SRC/sgttrs.f page from the Library Functions Manual, and itβs giving major βletβs solve a tridiagonal systemβ energy. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine sgttrs (trans, n, nrhs, dl, d, du, du2, ipiv, b, ldb, info)βSGTTRS
π Function/Subroutine Documentation π
subroutine sgttrs (character trans, integer n, integer nrhs, real,
dimension( * ) dl, real, dimension( * ) d, real, dimension( * ) du,
real, dimension( * ) du2, integer, dimension( * ) ipiv, real, dimension(
ldb, * ) b, integer ldb, integer info)
SGTTRS
π― Purpose
Okay so SGTTRS solves one of these systems of equations:
A*X = B or A**T*X = B
with a tridiagonal matrix A using the LU factorization computed by SGTTRF. Thatβs the whole main-character job, no cap. β¨
π§Έ Parameters
TRANSβTRANS is CHARACTER*1. It specifies the form of the system of equations, bestie:= 'N': A * X = B (No transpose)= 'T': A**T* X = B (Transpose)= 'C': A**T* X = B (Conjugate transpose = Transpose)
NβN is INTEGER. This is the order of the matrixA. π«NRHSβNRHS is INTEGER. This is the number of right hand sides, i.e., the number of columns of the matrixB.NRHS >= 0.DLβDL is REAL array, dimension (N-1). These are the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.DβD is REAL array, dimension (N). These are thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.DUβDU is REAL array, dimension (N-1). These are the(n-1)elements of the first super-diagonal ofU.DU2βDU2 is REAL array, dimension (N-2). These are the(n-2)elements of the second super-diagonal ofU.IPIVβIPIV is INTEGER array, dimension (N). These are the pivot indices; for1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. π«ΆBβB is REAL array, dimension (LDB,NRHS). On entry, this is the matrix of right hand side vectorsB. On exit,Bis overwritten by the solution vectorsX. Iconic overwrite behavior, honestly. πLDBβLDB is INTEGER. This is the leading dimension of the arrayB.LDB >= max(1,N).INFOβINFO is INTEGER.= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value
βοΈ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 136 of file sgttrs.f.
Yep, the docs literally say: Definition at line 136 of file sgttrs.f. π―
π€ Author π€
Generated automatically by Doxygen for LAPACK from the source code.
π Cute little sign-off, bestie: this page is from SRC/sgttrs.f / SRC/sgttrs.f(3), and the footer says LAPACK Version 3.12.0. Thereβs no date listed in the footer, so Iβm not inventing one β periodt. ππ¦β¨
π¦ 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