SRC/cgttrf.f(3)
π NAME π
SRC/cgttrf.f is the file this whole page is about, and it lives in the Library Functions Manual β short, sweet, iconic π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cgttrf (n, dl, d, du, du2, ipiv, info)
CGTTRF β that's the subroutine label, bestie π
πΈ Function/Subroutine Documentation πΈ
Full signature, no cuts π«Ά
subroutine cgttrf (integer n, complex, dimension( * ) dl, complex,
dimension( * ) d, complex, dimension( * ) du, complex, dimension( * )
du2, integer, dimension( * ) ipiv, integer info)
CGTTRF β yes, same energy, full type-and-dimension reveal β¨
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. That's the whole purpose, and it literally ate π
π₯
Parameters
NβN is INTEGER; the order of the matrixA. π«ΆDLβDL is COMPLEX array, dimension (N-1).- On entry,
DLmust contain the(n-1)sub-diagonal elements ofA. - On exit,
DLis overwritten by the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.
- On entry,
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.
- On entry,
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.
- On entry,
DU2βDU2 is COMPLEX array, dimension (N-2).- On exit,
DU2is overwritten by the(n-2)elements of the second super-diagonal ofU.
- On exit,
IPIVβIPIV is INTEGER array, dimension (N); the pivot indices. For1 <= i <= n, rowiof the matrix was interchanged with rowIPIV(i).IPIV(i)will always be eitheriori+1;IPIV(i) = iindicates a row interchange was not required. π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. π¨ This is the serious one, bestie β division by zero is not a vibe.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 123 of file cgttrf.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
π okay that's the whole page, bestie! It's SRC/cgttrf.f(3) from LAPACK Version 3.12.0 β go forth and factorize responsibly π
β¨
π¦ 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