CGTTRF(3)
π CGTTRF(3) π
ok so we're in the Library Functions Manual bestie, and this page is literally about /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/cgttrf.f β yes that's the whole path, she's committed π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine CGTTRF (n, dl, d, du, du2, ipiv, info)
CGTTRF β that's her name, that's her whole thing π«Ά
π Function/Subroutine Documentation π
subroutine CGTTRF (integer n, complex, dimension( * ) dl, complex,
dimension( * ) d, complex, dimension( * ) du, complex, dimension( * )
du2, integer, dimension( * ) ipiv, integer info)
CGTTRF π« (yes, again, she's the main character, we said her name twice)
πΈ Purpose πΈ
!>
!> CGTTRF computes an LU factorization of a complex tridiagonal matrix A
!> using elimination with partial pivoting and row interchanges.
!>
!> The factorization has the form
!> A = L * U
!> where L is a product of permutation and unit lower bidiagonal
!> matrices and U is upper triangular with nonzeros in only the main
!> diagonal and first two superdiagonals.
!>
so basically: she takes your complex tridiagonal matrix A, does elimination with partial pivoting and row interchanges (iconic behavior), and hands you back A = L * U. and like β L is a product of permutation and unit lower bidiagonal matrices, and U is upper triangular but lowkey only has nonzeros in the main diagonal and the first two superdiagonals. slay, sparse queen β¨
π Parameters π
NβN is INTEGER, the order of the matrixA. that's it, that's the vibe check π₯DLβDL is COMPLEX array, dimension (N-1)On entry,DLmust contain the(n-1)sub-diagonal elements ofAβ like, required, no cap. On exit,DLis overwritten by the(n-1)multipliers that define the matrixLfrom the LU factorization ofA. she ate and left no crumbs πDβD is COMPLEX array, dimension (N)On entry,Dmust contain the diagonal elements ofA. On exit,Dis overwritten by thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA. glow-up fr fr πDUβDU is COMPLEX 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. β¨DU2βDU2 is COMPLEX array, dimension (N-2)On exit,DU2is overwritten by the(n-2)elements of the second super-diagonal ofU. note that she's exit-only babes, no entry duties πIPIVβIPIV is INTEGER array, dimension (N)the pivot indices bestie! for1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i). andIPIV(i)will always be eitheriori+1βIPIV(i) = iindicates a row interchange was not required. it's giving "chill, nothing moved" πINFOβINFO is INTEGER= 0: successful exit π< 0: ifINFO = -k, thek-th argument had an illegal value π> 0: ifINFO = k,U(k,k)is exactly zero. The factorization has been completed, but the factorUis exactly singular, and division by zero will occur if it is used to solve a system of equations. π
β οΈ ok real talk β that last one?INFO > 0meansUis exactly singular. the factorization ran, it finished, but if you go solve a system with it you WILL divide by zero. not a drill, not a vibe, a genuine warning π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad co-signed this one π«Ά
β Definition β
Definition at line 123 of file cgttrf.f.
π¦ Author π¦
Generated automatically by Doxygen for LAPACK from the source code. (she wasn't written, she was generated β literal nepo baby of the docs world, and we love her for it π )
ok that's the whole page bestie, go factor something tridiagonal responsibly πβ¨ππ¦πΈπ
LAPACK β Version 3.12.0 π and fr fr, this page came from /home/abui...RC/cgttrf.f(3) β mwah, bye ππ
π¦ 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