SGTTRS(3)
πΈ SGTTRS (3) β the tridiagonal-solve bestie we deserve β¨
ok so this is a page from the Library Functions Manual, and the star of the show lives at /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgttrs.f β yes that's a whole mouthful, she's got a long address, we still love her π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgttrs.f
that's it. that's the name. she's a file path and she's iconic for it π
π¦ SYNOPSIS π¦
Functions/Subroutines
subroutine SGTTRS (trans, n, nrhs, dl, d, du, du2, ipiv, b, ldb, info)
SGTTRS π« (yes the heading literally just says her name again, main character energy fr)
π 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 (she said it twice, she's confident π )
π Purpose π
ok so listen bestie, here's the vibe:
!>
!> SGTTRS solves one of the systems of equations
!> A*X = B or A**T*X = B,
!> with a tridiagonal matrix A using the LU factorization computed
!> by SGTTRF.
!>
so basically she takes your system of equations β either A*X = B or A**T*X = B β with a tridiagonal matrix A, and she solves it using the LU factorization that SGTTRF already computed for you. no cap, that's the whole job π«Ά
π Parameters π
TRANSβTRANS is CHARACTER*1. this tells her which form of the system of equations you want, and your options are:= 'N': A * X = B (No transpose)= 'T': A**T* X = B (Transpose)= 'C': A**T* X = B (Conjugate transpose = Transpose)
(yes 'T' and 'C' do the same thing here, that's not a typo, that's just how it is π)
NβN is INTEGER. the order of the matrixA. literally just how big she is β¨NRHSβNRHS is INTEGER. the number of right hand sides, i.e., the number of columns of the matrixB. and important:NRHS >= 0. she does not do negative columns, don't even try πDLβDL is REAL array, dimension (N-1). the(n-1)multipliers that define the matrixLfrom the LU factorization ofA. the L girlies πDβD is REAL array, dimension (N). thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. the diagonal queen πDUβDU is REAL array, dimension (N-1). the(n-1)elements of the first super-diagonal ofU. first super-diagonal, so fancy πDU2βDU2 is REAL array, dimension (N-2). the(n-2)elements of the second super-diagonal ofU. okay second super-diagonal, she's showing off now β¨IPIVβIPIV is INTEGER array, dimension (N). the pivot indices; for1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i). and here's the tea:IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. so she's never out here swapping rows all wild, she keeps it neighbors-only π«ΆBβB is REAL array, dimension (LDB,NRHS). on entry, the matrix of right hand side vectorsB. on exit,Bis overwritten by the solution vectorsX. so likeβ¦ she eats yourBand leavesXbehind. she ate and left no crumbs fr fr π₯LDBβLDB is INTEGER. the leading dimension of the arrayB. andLDB >= max(1,N)β gotta be at least that, no discussion πINFOβINFO is INTEGER. the receipts:= 0: successful exitπ< 0: if INFO = -i, the i-th argument had an illegal valueπ (soINFOtells you which argument acted up, helpful king)
πΈ Author πΈ
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
a whole squad, we love a collaborative effort π
Definition at line 136 of file sgttrs.f. (iykyk, she's anchored to line 136 exactly, don't @ me)
β Author β
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this bad boy, a robot did it and honestly? slay π€β¨
ok that's the whole page bestie, go solve your tridiagonal systems, you got this ππ¦
LAPACK β Version 3.12.0 β /home/abui...RC/sgttrs.f(3) π that's the version, that's the date string, that's the sign-off, mwah π
π¦ 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