CGTTS2(3)
πΈ NAME πΈ
ok so bestie, this page is literally all about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cgtts2.f β and yes, it's from the Library Functions Manual (the header up top literally reads /home/abui...RC/cgtts2.f(3), no cap). It's a Fortran source file that's giving main character energy in LAPACK's SRC folder. π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine CGTTS2 (itrans, n, nrhs, dl, d, du, du2, ipiv, b, ldb)
so what does it do? CGTTS2 solves a system of linear equations with a tridiagonal matrix using the LU factorization computed by sgttrf. that's the whole vibe fr fr π«Ά
π Function/Subroutine Documentation π
subroutine CGTTS2 (integer itrans, integer n, integer nrhs, complex,
dimension( * ) dl, complex, dimension( * ) d, complex, dimension( * )
du, complex, dimension( * ) du2, integer, dimension( * ) ipiv, complex,
dimension( ldb, * ) b, integer ldb)
CGTTS2 solves a system of linear equations with a tridiagonal matrix using the LU factorization computed by sgttrf. (yes that's exactly what the page says, we're not editing the lore π)
π Purpose:
!>
!> CGTTS2 solves one of the systems of equations
!> A * X = B, A**T * X = B, or A**H * X = B,
!> with a tridiagonal matrix A using the LU factorization computed
!> by CGTTRF.
!>
so it's picking one of three equations to solve depending on the transpose situation. iconic behavior honestly β¨
π Parameters π
ITRANSβ bestie this one is anINTEGER, and it tells you which form of the system of equations you're dealing with:= 0:A * X = B(No transpose)= 1:A**T * X = B(Transpose)= 2:A**H * X = B(Conjugate transpose)
iykyk π
Nβ anINTEGER. it's the order of the matrix A. that's it, that's the whole thing π¦NRHSβ anINTEGER. the number of right hand sides, i.e., the number of columns of the matrix B. and listen:NRHS >= 0. respect the boundary bestie πDLβ aCOMPLEXarray, dimension(N-1). these are the (n-1) multipliers that define the matrix L from the LU factorization of A. lowkey the backbone of the whole operation πDβ aCOMPLEXarray, dimension(N). the n diagonal elements of the upper triangular matrix U from the LU factorization of A. main diagonal energy βDUβ aCOMPLEXarray, dimension(N-1). the (n-1) elements of the first super-diagonal of U. slay, super-diagonal πDU2β aCOMPLEXarray, dimension(N-2). the (n-2) elements of the second super-diagonal of U. (note theN-2bestie, notN-1, we stay accurate here π )IPIVβ anINTEGERarray, dimension(N). the pivot indices; for1 <= i <= n, row i of the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. so basically it's the receipts of who swapped with who πBβ aCOMPLEXarray, dimension(LDB,NRHS). on entry, the matrix of right hand side vectors B. on exit, B is overwritten by the solution vectors X. not me gaslighting your arrayβ¦ it literally gets overwritten bestie πLDBβ anINTEGER. the leading dimension of the array B. andLDB >= max(1,N). mandatory, no negotiating πΈ
π§ Author π§
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
definition at line 127 of file cgtts2.f. noted for the record π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this one, it's a bot's finest work π€β¨
okay that's the whole page bestie, you're officially fluent in CGTTS2 now π«Άπ stay hydrated, keep your LDB >= max(1,N), and remember β this was all brought to you by LAPACK, Version 3.12.0, source file /home/abui...RC/cgtts2.f(3). periodt. π
πΈ
π¦ 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