TESTING/LIN/zgtt01.f(3)
π NAME π
TESTING/LIN/zgtt01.f β and yes, this is a Library Functions Manual page, bestie. We're in the TESTING/LIN folder and this one is all about zgtt01.
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine zgtt01 (n, dl, d, du, dlf, df, duf, du2, ipiv, work, ldwork,
rwork, resid)
ZGTT01
π§ Function/Subroutine Documentation π§
Here's the full signature, exactly as this page gives it:
subroutine zgtt01 (integer n, complex*16, dimension( * ) dl, complex*16,
dimension( * ) d, complex*16, dimension( * ) du, complex*16, dimension(
* ) dlf, complex*16, dimension( * ) df, complex*16, dimension( * ) duf,
complex*16, dimension( * ) du2, integer, dimension( * ) ipiv,
complex*16, dimension( ldwork, * ) work, integer ldwork, double
precision, dimension( * ) rwork, double precision resid)
ZGTT01
π Purpose π
Okay so ZGTT01 reconstructs a tridiagonal matrix A from its LU factorization, and then it computes the residual:
norm(L*U - A) / ( norm(A) * EPS ),
where EPS is the machine epsilon. That's the whole glow-up: rebuild from LU, then check the residual π
πΈ Parameters πΈ
NβN is INTEGER. It's the order of the matrixA, andN >= 0. No negatives, bestie.DLβDL is COMPLEX*16 array, dimension (N-1). These are the(n-1)sub-diagonal elements ofA.DβD is COMPLEX*16 array, dimension (N). These are the diagonal elements ofA.DUβDU is COMPLEX*16 array, dimension (N-1). These are the(n-1)super-diagonal elements ofA.DLFβDLF is COMPLEX*16 array, dimension (N-1). These are the(n-1)multipliers that define the matrixLfrom the LU factorization ofA.DFβDF is COMPLEX*16 array, dimension (N). These are thendiagonal elements of the upper triangular matrixUfrom the LU factorization ofA.DUFβDUF is COMPLEX*16 array, dimension (N-1). These are the(n-1)elements of the first super-diagonal ofU.DU2βDU2 is COMPLEX*16 array, dimension (N-2). These are the(n-2)elements of the second super-diagonal ofU.IPIVβIPIV is INTEGER array, dimension (N). These are 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.WORKβWORK is COMPLEX*16 array, dimension (LDWORK,N).LDWORKβLDWORK is INTEGER. It's the leading dimension of the arrayWORK, andLDWORK >= max(1,N).RWORKβRWORK is DOUBLE PRECISION array, dimension (N).RESIDβRESID is DOUBLE PRECISION. This is the scaled residual:norm(L*U - A) / (norm(A) * EPS).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 132 of file zgtt01.f.
π Author (generated edition) π
Generated automatically by Doxygen for LAPACK from the source code.
And that's the footer tea, bestie β: source is LAPACK, version is Version 3.12.0, and the page is TESTING/LIN/zgtt01.f(3). periodt β¨
π¦ 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