SRC/sgtsv.f(3)
π NAME π
okay so bestie, this page is literally SRC/sgtsv.f(3) β that's the manual name β and it's all about the Fortran subroutine sgtsv. no cap, she's iconic.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine sgtsv (n, nrhs, dl, d, du, b, ldb, info)
the one-liner vibe is: SGTSV computes the solution to system of linear equations A * X = B for GT matrices.
πΈ Function/Subroutine Documentation πΈ
subroutine sgtsv (integer n, integer nrhs, real, dimension( * ) dl, real,
dimension( * ) d, real, dimension( * ) du, real, dimension( ldb, * ) b,
integer ldb, integer info)
same energy, but now with the full type info: SGTSV computes the solution to system of linear equations A * X = B for GT matrices.
π Purpose: π
okay so SGTSV solves the equation
A*X = B,
where A is an n by n tridiagonal matrix, by Gaussian elimination with partial pivoting. slay.
also important, bestie: the equation
A**T*X = B
may be solved by interchanging the order of the arguments DU and DL. iykyk.
π Parameters π
NβINTEGER. it's the order of the matrixA, andN >= 0. periodt.NRHSβINTEGER. the number of right hand sides, i.e., the number of columns of the matrixB. alsoNRHS >= 0.DLβREALarray, dimension(N-1). on entry,DLmust contain the(n-1)sub-diagonal elements ofA. on exit,DLis overwritten by the(n-2)elements of the second super-diagonal of the upper triangular matrixUfrom the LU factorization ofA, inDL(1), ..., DL(n-2). she's getting rewritten, bestie.DβREALarray, dimension(N). on entry,Dmust contain the diagonal elements ofA. on exit,Dis overwritten by the n diagonal elements ofU.DUβREALarray, dimension(N-1). on entry,DUmust contain the(n-1)super-diagonal elements ofA. on exit,DUis overwritten by the(n-1)elements of the first super-diagonal ofU.BβREALarray, dimension(LDB,NRHS). on entry, theNbyNRHSmatrix of right hand side matrixB. on exit, ifINFO = 0, theNbyNRHSsolution matrixX.LDBβINTEGER. the leading dimension of the arrayB.LDB >= max(1,N). don't play with her.INFOβINTEGER. the exit-code bestie:= 0: successful exit, slay.< 0: ifINFO = -i, the i-th argument had an illegal value.> 0: ifINFO = i,U(i,i)is exactly zero, and the solution has not been computed. The factorization has not been completed unlessi = N.
π¨ bestie warning: ifINFO > 0andINFO = i,U(i,i)is exactly zero, so the solution has not been computed, and the factorization has not been completed unlessi = N. that is not a drill. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 126 of file sgtsv.f. β yes, she's literally defined there. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. no cap, the docs wrote themselves (well, Doxygen did). π«Ά
mwah π β LAPACK Version 3.12.0, source SRC/sgtsv.f(3); no date in the footer, so no invented date 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