TESTING/LIN/sgtt01.f(3)
okay bestie, this is TESTING/LIN/sgtt01.f(3) from the Library Functions Manual, and itβs giving βLAPACK testing routine with main character energyβ π
β¨
π NAME π
TESTING/LIN/sgtt01.f
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine sgtt01 (n, dl, d, du, dlf, df, duf, du2, ipiv, work, ldwork, rwork, resid)β SGTT01
π¦ Function/Subroutine Documentation π¦
subroutine sgtt01 (integer n, real, dimension( * ) dl, real, dimension( * )
d, real, dimension( * ) du, real, dimension( * ) dlf, real, dimension( *
) df, real, dimension( * ) duf, real, dimension( * ) du2, integer,
dimension( * ) ipiv, real, dimension( ldwork, * ) work, integer ldwork,
real, dimension( * ) rwork, real resid)
SGTT01
π― Purpose π―
okay so SGTT01 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. no cap, thatβs the whole vibe check π₯
πΈ Parameters πΈ
N
N is INTEGER. Itβs the order of matrix A, and N >= 0. periodt.
DL
DL is a REAL array, dimension (N-1). It holds the (n-1) sub-diagonal elements of A π«Ά
D
D is a REAL array, dimension (N). It holds the diagonal elements of A β¨
DU
DU is a REAL array, dimension (N-1). It holds the (n-1) super-diagonal elements of A π
DLF
DLF is a REAL array, dimension (N-1). These are the (n-1) multipliers that define the matrix L from the LU factorization of A π
DF
DF is a REAL array, dimension (N). It has the n diagonal elements of the upper triangular matrix U from the LU factorization of A π
DUF
DUF is a REAL array, dimension (N-1). It holds the (n-1) elements of the first super-diagonal of U β
DU2
DU2 is a REAL array, dimension (N-2). It holds the (n-2) elements of the second super-diagonal of U π¦
IPIV
IPIV is an INTEGER array, dimension (N). These are the pivot indices; for 1 <= i <= n, row i of the matrix was interchanged with row IPIV(i). IPIV(i) will always be either i or i+1; IPIV(i) = i indicates a row interchange was not required. iykyk π§
WORK
WORK is a REAL array, dimension (LDWORK,N) π
LDWORK
LDWORK is INTEGER. Itβs the leading dimension of the array WORK, and LDWORK >= max(1,N) π
RWORK
RWORK is a REAL array, dimension (N) πΈ
RESID
RESID is REAL. Itβs 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 sgtt01.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the tea, bestie π«Ά this page is from LAPACK Version 3.12.0, TESTING/LIN/sgtt01.f(3) β slay and stay numeric π
β¨
π¦ 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