TESTING/EIG/sbdt03.f(3)
β¨ NAME β¨
Okay bestie, this is the page for TESTING/EIG/sbdt03.f in the Library Functions Manual β yes, the whole TESTING/EIG/sbdt03.f(3) situation. Itβs giving βLAPACK testing routine with main character energy,β lowkey. π
β¨ SYNOPSIS β¨
β¨ Functions/Subroutines β¨
subroutine sbdt03 (uplo, n, kd, d, e, u, ldu, s, vt, ldvt, work, resid)βSBDT03
Also, hereβs the exact signature from the docs, no cap:
subroutine sbdt03 (character uplo, integer n, integer kd, real, dimension( *
) d, real, dimension( * ) e, real, dimension( ldu, * ) u, integer ldu,
real, dimension( * ) s, real, dimension( ldvt, * ) vt, integer ldvt,
real, dimension( * ) work, real resid)
SBDT03 β thatβs the routine name, periodt. β¨
β¨ Function/Subroutine Documentation β¨
β¨ Purpose β¨
Bestie, hereβs the whole point: SBDT03 reconstructs a bidiagonal matrix B from its 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( B - U * S * VT ) / ( n * norm(B) * EPS )
where VT = V' and EPS is the machine precision. Literally the whole vibe check. πΈ
β¨ Parameters β¨
UPLOβUPLOisCHARACTER*1. Specifies whether the matrix B is upper or lower bidiagonal.= 'U':Upper bidiagonal.= 'L':Lower bidiagonal. πNβNisINTEGER. The order of the matrix B. πKDβKDisINTEGER. The bandwidth of the bidiagonal matrix B. IfKD = 1, the matrix B is bidiagonal, and ifKD = 0, B is diagonal and E is not referenced. IfKDis greater than1, it is assumed to be1, and ifKDis less than0, it is assumed to be0. Thatβs the rule, fr fr. β¨DβDisREAL array, dimension (N). The n diagonal elements of the bidiagonal matrix B. πEβEisREAL array, dimension (N-1). The(n-1)superdiagonal elements of the bidiagonal matrix B ifUPLO = 'U', or the(n-1)subdiagonal elements of B ifUPLO = 'L'. π¦UβUisREAL array, dimension (LDU,N). The n by n orthogonal matrix U in the reductionB = U'*A*P. πLDUβLDUisINTEGER. The leading dimension of the array U.LDU >= max(1,N). πSβSisREAL array, dimension (N). The singular values from the SVD of B, sorted in decreasing order. Obsessed with a sorted list ngl. π₯VTβVTisREAL array, dimension (LDVT,N). The n by n orthogonal matrix V' in the reductionB = U * S * V'. πLDVTβLDVTisINTEGER. The leading dimension of the array VT. βWORKβWORKisREAL array, dimension (2*N). π«ΆRESIDβRESIDisREAL. The test ratio:norm(B - U * S * V') / ( n * norm(A) * EPS ). π
β¨ Author β¨
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 133 of file sbdt03.f. π
β¨ Author β¨
Generated automatically by Doxygen for LAPACK from the source code. π€β¨
Cute sign-off time: this page is from LAPACK Version 3.12.0 and itβs labeled TESTING/EIG/sbdt03.f(3). No date on this footer, so weβre not inventing one β weβre just saying byeee 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