TESTING/EIG/zbdt05.f(3)
Hey bestie π«Ά you're looking at TESTING/EIG/zbdt05.f(3) from the Library Functions Manual. This is the ZBDT05 page, and yes, we're gonna make it make sense. π
πΈ NAME πΈ
TESTING/EIG/zbdt05.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines
subroutine zbdt05 (m, n, a, lda, s, ns, u, ldu, vt, ldvt, work, resid)
ZBDT05
π Function/Subroutine Documentation π
π Signature π
subroutine zbdt05 (integer m, integer n, complex*16, dimension( lda, * ) a,
integer lda, double precision, dimension( * ) s, integer ns, complex*16,
dimension( * ) u, integer ldu, complex*16, dimension( ldvt, * ) vt,
integer ldvt, complex*16, dimension( * ) work, double precision resid)
ZBDT05
π¦ Purpose π¦
Okay so ZBDT05 reconstructs a bidiagonal matrix B from its (partial) SVD:
S = U' * B * V
where U and V are orthogonal matrices and S is diagonal.
The test ratio to test the singular value decomposition is:
RESID = norm( S - U' * B * V ) / ( n * norm(B) * EPS )
where VT = V' and EPS is the machine precision. Slay. π
π Parameters π
MβMisINTEGER. The number of rows of the matricesAandU.NβNisINTEGER. The number of columns of the matricesAandVT.AβAisCOMPLEX*16 array, dimension (LDA,N). ThembynmatrixA.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).SβSisDOUBLE PRECISION array, dimension (NS). The singular values from the (partial) SVD ofB, sorted in decreasing order.NSβNSisINTEGER. The number of singular values/vectors from the (partial) SVD ofB.UβUisCOMPLEX*16 array, dimension (LDU,NS). Thenbynsorthogonal matrixUinS = U' * B * V.LDUβLDUisINTEGER. The leading dimension of the arrayU.LDU >= max(1,N)VTβVTisCOMPLEX*16 array, dimension (LDVT,N). Thenbynsorthogonal matrixVinS = U' * B * V.LDVTβLDVTisINTEGER. The leading dimension of the arrayVT.WORKβWORKisCOMPLEX*16 array, dimension (M,N).RESIDβRESIDisDOUBLE PRECISION. The test ratio:norm(S - U' * A * V) / ( n * norm(A) * EPS ).
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π₯ Definition π₯
Definition at line 123 of file zbdt05.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Okay bestie, the footer says LAPACK Version 3.12.0 and TESTING/EIG/zbdt05.f(3). That's the whole sign-off β mwah πβ¨
π¦ 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