TESTING/EIG/cstt22.f(3)
π TESTING/EIG/cstt22.f π
okay bestie, welcome to the TESTING/EIG/cstt22.f(3) page from the Library Functions Manual β this is the little test routine that checks a Hermitian tridiagonal eigen-decomposition, and we are obsessed with the details β¨π
πΈ NAME πΈ
TESTING/EIG/cstt22.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine cstt22 (n, m, kband, ad, ae, sd, se, u, ldu, work, ldwork,
rwork, result)
CSTT22
π Function/Subroutine Documentation π
π«Ά subroutine cstt22 π«Ά
subroutine cstt22 (integer n, integer m, integer kband, real, dimension( * )
ad, real, dimension( * ) ae, real, dimension( * ) sd, real, dimension( *
) se, complex, dimension( ldu, * ) u, integer ldu, complex, dimension(
ldwork, * ) work, integer ldwork, real, dimension( * ) rwork, real,
dimension( 2 ) result)
CSTT22
π Purpose π
CSTT22 checks a set of M eigenvalues and eigenvectors, like this:
A U = U S
where A is Hermitian tridiagonal, the columns of U are unitary, and S is diagonal (if KBAND=0) or Hermitian tridiagonal (if KBAND=1). Two tests are performed:
RESULT(1) = | U* A U - S | / ( |A| m ulp )
RESULT(2) = | I - U*U | / ( m ulp )
π Parameters π
NβNis INTEGER. It's the size of the matrix. If it is zero,CSTT22does nothing. It must be at least zero.MβMis INTEGER. The number of eigenpairs to check. If it is zero,CSTT22does nothing. It must be at least zero.KBANDβKBANDis INTEGER. The bandwidth of the matrixS. It may only be zero or one. If zero, thenSis diagonal, andSEis not referenced. If one, thenSis Hermitian tri-diagonal.ADβADis REAL array, dimension(N). The diagonal of the original (unfactored) matrixA.Ais assumed to be Hermitian tridiagonal.AEβAEis REAL array, dimension(N). The off-diagonal of the original (unfactored) matrixA.Ais assumed to be Hermitian tridiagonal.AE(1)is ignored,AE(2)is the(1,2)and(2,1)element, etc.SDβSDis REAL array, dimension(N). The diagonal of the (Hermitian tri-) diagonal matrixS.SEβSEis REAL array, dimension(N). The off-diagonal of the (Hermitian tri-) diagonal matrixS. Not referenced ifKBSND=0. IfKBAND=1, thenAE(1)is ignored,SE(2)is the(1,2)and(2,1)element, etc.UβUis REAL array, dimension(LDU, N). The unitary matrix in the decomposition.LDUβLDUis INTEGER. The leading dimension ofU.LDUmust be at leastN.WORKβWORKis COMPLEX array, dimension(LDWORK, M+1).LDWORKβLDWORKis INTEGER. The leading dimension ofWORK.LDWORKmust be at leastmax(1,M).RWORKβRWORKis REAL array, dimension(N).RESULTβRESULTis REAL array, dimension(2). The values computed by the two tests described above. The values are currently limited to1/ulp, to avoid overflow.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 143 of file cstt22.f.
πͺ Author πͺ
Generated automatically by Doxygen for LAPACK from the source code.
mwah π this page is LAPACK Version 3.12.0 for TESTING/EIG/cstt22.f(3), and the footer doesn't list a date β so no fake date from me, bestie π«Άβ¨
π¦ 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