SRC/dgtsv.f(3)
okay so bestie, this is the SRC/dgtsv.f page from the Library Functions Manual π
welcome to the tridiagonal solver group chat β¨
π NAME π
SRC/dgtsv.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine dgtsv (n, nrhs, dl, d, du, b, ldb, info)β DGTSV computes the solution to system of linear equationsA * X = Bfor GT matrices π
π Function/Subroutine Documentation π
subroutine dgtsv (integer n, integer nrhs, double precision, dimension( * )
dl, double precision, dimension( * ) d, double precision, dimension( * )
du, double precision, dimension( ldb, * ) b, integer ldb, integer info)
DGTSV computes the solution to system of linear equations A * X = B for GT matrices β no cap, that is literally the whole main-character job π
π Purpose π
okay so here's the vibe, bestie:
DGTSV solves the equation
A*X = B,
where A is an n by n tridiagonal matrix, by Gaussian elimination with
partial pivoting.
Note that the equation A**T*X = B may be solved by interchanging the
order of the arguments DU and DL.
so yes: tridiagonal matrix, Gaussian elimination, partial pivoting, and that little swap trick with DU and DL for A**T*X = B π₯
πΈ Parameters πΈ
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. πDLβDLisDOUBLE PRECISION array, 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). π¦DβDisDOUBLE PRECISION array, dimension(N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. πΈDUβDUisDOUBLE PRECISION array, 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βBisDOUBLE PRECISION array, dimension(LDB,NRHS). On entry, theNbyNRHSmatrix of right hand side matrixB. On exit, ifINFO = 0, theNbyNRHSsolution matrixX. π«ΆLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πINFOβINFOisINTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-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. π
π« Author π«
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition
Definition at line 126 of file dgtsv.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code.
and that's the page, bestie β footer vibes are LAPACK, Version 3.12.0, and SRC/dgtsv.f(3) ππβ¨
π¦ 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