TESTING/EIG/cbdt05.f(3)
π TESTING/EIG/cbdt05.f π
okay so bestie, this is the TESTING/EIG/cbdt05.f(3) page from the Library Functions Manual β yes, the cbdt05 subroutine is the main character here and she's here to reconstruct a bidiagonal matrix and check an SVD. No cap. π¦
πΈ NAME πΈ
TESTING/EIG/cbdt05.f
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine cbdt05 (m, n, a, lda, s, ns, u, ldu, vt, ldvt, work, resid)
CBDT05
π¦ Function/Subroutine Documentation π¦
subroutine cbdt05 (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, real, dimension( * ) s, integer ns, complex, dimension( * )
u, integer ldu, complex, dimension( ldvt, * ) vt, integer ldvt, complex,
dimension( * ) work, real resid)
CBDT05
β¨ Purpose β¨
CBDT05 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. periodt π
lowkey important: thatRESIDformula up there usesB, but theRESIDparameter description below usesAβ yes, both are in the original, so we're keeping both exactly. π
π Parameters π
MβM is INTEGER; the number of rows of the matricesAandU.NβN is INTEGER; the number of columns of the matricesAandVT.AβA is COMPLEX array, dimension (LDA,N); thembynmatrixA.LDAβLDA is INTEGER; the leading dimension of the arrayA.LDA >= max(1,M).SβS is REAL array, dimension (NS); the singular values from the (partial) SVD ofB, sorted in decreasing order.NSβNS is INTEGER; the number of singular values/vectors from the (partial) SVD ofB.UβU is COMPLEX array, dimension (LDU,NS); thenbynsorthogonal matrixUinS = U' * B * V.LDUβLDU is INTEGER; the leading dimension of the arrayU.LDU >= max(1,N).VTβVT is COMPLEX array, dimension (LDVT,N); thenbynsorthogonal matrixVinS = U' * B * V.LDVTβLDVT is INTEGER; the leading dimension of the arrayVT.WORKβWORK is COMPLEX array, dimension (M,N).RESIDβRESID is REAL; 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 at line 123 of file cbdt05.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay bye bestie β this page is brought to you by LAPACK, Version 3.12.0 and the TESTING/EIG/cbdt05.f(3) source-code dimension πβ¨π¦
π¦ 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