SRC/cgtsv.f(3)
okay so welcome to SRC/cgtsv.f(3), bestie β literally the library functions manual page for SRC/cgtsv.f, and it is all about the cgtsv subroutine. π
πΈ NAME πΈ
SRC/cgtsv.f β thatβs the name on the page, bestie. No cap.
β¨ SYNOPSIS β¨
π₯ Functions/Subroutines
subroutine cgtsv (n, nrhs, dl, d, du, b, ldb, info)
CGTSV computes the solution to system of linear equations A * X = B for GT matrices β iconic behavior, honestly. π
π¦ Function/Subroutine Documentation π¦
subroutine cgtsv (integer n, integer nrhs, complex, dimension( * ) dl,
complex, dimension( * ) d, complex, dimension( * ) du, complex,
dimension( ldb, * ) b, integer ldb, integer info)
CGTSV computes the solution to system of linear equations A * X = B for GT matrices. π«Ά
π‘ Purpose:
CGTSV 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. iykyk β¨
π§Ύ 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βDLisCOMPLEXarray, dimension(N-1). On entry,DLmust contain the(n-1)subdiagonal elements ofA. On exit,DLis overwritten by the(n-2)elements of the second superdiagonal of the upper triangular matrixUfrom the LU factorization ofA, inDL(1), ..., DL(n-2). πDβDisCOMPLEXarray, dimension(N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. π«DUβDUisCOMPLEXarray, dimension(N-1). On entry,DUmust contain the(n-1)superdiagonal elements ofA. On exit,DUis overwritten by the(n-1)elements of the first superdiagonal ofU. π¦BβBisCOMPLEXarray, dimension(LDB,NRHS). On entry, theN-by-NRHSright hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution 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. π
bestie, the INFO > 0 case is the βit literally did not finishβ vibe β do not ignore it. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file cgtsv.f.
π€ Author
Generated automatically by Doxygen for LAPACK from the source code.
π final sign-off, bestie: LAPACK Version 3.12.0 β source page SRC/cgtsv.f(3) β with the footerβs date/version slot exactly as the page gives it (that footer is the whole date/version line, no extra date hiding anywhere). π
π¦ 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