gtsv(3)
π gtsv(3) β factor and solve π
from the Library Functions Manual, bestie, and this page is literally the tridiagonal solver headquarters. β¨
β¨ NAME β¨
gtsv - gtsv: factor and solve π
π¦ SYNOPSIS π¦
πΈ Functions πΈ
subroutine cgtsv (n, nrhs, dl, d, du, b, ldb, info)βCGTSVcomputes the solution to system of linear equationsA * X = Bfor GT matrices. β¨subroutine dgtsv (n, nrhs, dl, d, du, b, ldb, info)βDGTSVcomputes the solution to system of linear equationsA * X = Bfor GT matrices. π«subroutine sgtsv (n, nrhs, dl, d, du, b, ldb, info)βSGTSVcomputes the solution to system of linear equationsA * X = Bfor GT matrices. πsubroutine zgtsv (n, nrhs, dl, d, du, b, ldb, info)βZGTSVcomputes the solution to system of linear equationsA * X = Bfor GT matrices. π
π Detailed Description π
okay so this is the big βwhere the functions actually liveβ zone. no extra lore here, just the docs. π«Ά
π Function Documentation π
π cgtsv β the COMPLEX one π
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. slay. β¨
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. π
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βDLis aCOMPLEX array, 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βDis aCOMPLEX array, dimension (N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. πDUβDUis aCOMPLEX array, 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βBis aCOMPLEX array, dimension (LDB,NRHS). On entry, this is theN-by-NRHSright hand side matrixB. On exit, ifINFO = 0, itβs theN-by-NRHSsolution matrixX. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π«ΆINFOβINFOisINTEGER. The receipts:= 0: successful exit π< 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. π
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition: at line 123 of file cgtsv.f. π
π dgtsv β the DOUBLE PRECISION one π
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. π«
Purpose: π―
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. π
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βDLis aDOUBLE 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βDis aDOUBLE PRECISION array, dimension (N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. πDUβDUis aDOUBLE 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βBis aDOUBLE PRECISION array, dimension (LDB,NRHS). On entry, this is theN by NRHSmatrix of right hand side matrixB. On exit, ifINFO = 0, itβs theN by NRHSsolution matrixX. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π«ΆINFOβINFOisINTEGER. The receipts:= 0: successful exit π< 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. π
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition: at line 126 of file dgtsv.f. π
π sgtsv β the REAL one π
subroutine sgtsv (integer n, integer nrhs, real, dimension( * ) dl, real, dimension( * ) d, real, dimension( * ) du, real, dimension( ldb, * ) b, integer ldb, integer info)
SGTSV computes the solution to system of linear equations A * X = B for GT matrices. iconic. π
Purpose: π―
SGTSV 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. π
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βDLis aREAL 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βDis aREAL array, dimension (N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. πDUβDUis aREAL 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βBis aREAL array, dimension (LDB,NRHS). On entry, this is theN by NRHSmatrix of right hand side matrixB. On exit, ifINFO = 0, itβs theN by NRHSsolution matrixX. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π«ΆINFOβINFOisINTEGER. The receipts:= 0: successful exit π< 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. π
Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition: at line 126 of file sgtsv.f. π
π zgtsv β the COMPLEX*16 one π
subroutine zgtsv (integer n, integer nrhs, complex*16, dimension( * ) dl, complex*16, dimension( * ) d, complex*16, dimension( * ) du, complex*16, dimension( ldb, * ) b, integer ldb, integer info)
ZGTSV computes the solution to system of linear equations A * X = B for GT matrices. main character energy. β¨
Purpose: π―
ZGTSV 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. π
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βDLis aCOMPLEX*16 array, 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βDis aCOMPLEX*16 array, dimension (N). On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements ofU. πDU
Hereβs the rest of the parameter cast, bestie β every detail intact, no cap:
DUβCOMPLEX*16 array, 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βCOMPLEX*16 array, dimension (LDB,NRHS). On entry, theN-by-NRHSright hand side matrixB. On exit, ifINFO = 0, theN-by-NRHSsolution matrixX. β¨LDBβINTEGER. The leading dimension of the arrayB.LDB >= max(1,N). π«ΆINFOβINTEGER. The exit-status vibe check:= 0: successful exit β slay. π< 0: ifINFO = -i, thei-th argument had an illegal value β not iconic. π> 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 at line 123 of file zgtsv.f. π
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code. π»
And thatβs the whole page, bestie! Final footer vibe: LAPACK, Version 3.12.0, page gtsv(3) β date as printed in your local footer, because this chunk didnβt include one, iykyk. Bye 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