ZCSDTS(3)
β¨ ZCSDTS(3) β¨
Okay bestie, this is the zcsdts.f(3) page from the Library Functions Manual β manual name folded in right here so we donβt have to copy that whole header line. Itβs a LAPACK test routine and itβs here to vibe-check some CSD behavior. π
π NAME π
The NAME section is literally just a path, and it is exactly:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/zcsdts.f
πΈ SYNOPSIS πΈ
π§ Functions/Subroutines π§
Hereβs the synopsis, no cap:
subroutine ZCSDTS (m, p, q, x, xf, ldx, u1, ldu1, u2, ldu2, v1t, ldv1t,
v2t, ldv2t, theta, iwork, work, lwork, rwork, result)
ZCSDTS
π Function/Subroutine Documentation π
The full signature is giving main character energy:
subroutine ZCSDTS (integer m, integer p, integer q, complex*16, dimension(
ldx, * ) x, complex*16, dimension( ldx, * ) xf, integer ldx, complex*16,
dimension( ldu1, * ) u1, integer ldu1, complex*16, dimension( ldu2, * )
u2, integer ldu2, complex*16, dimension( ldv1t, * ) v1t, integer ldv1t,
complex*16, dimension( ldv2t, * ) v2t, integer ldv2t, double precision,
dimension( * ) theta, integer, dimension( * ) iwork, complex*16,
dimension( lwork ) work, integer lwork, double precision, dimension( * )
rwork, double precision, dimension( 15 ) result)
ZCSDTS
β¨ Purpose β¨
Ok so ZCSDTS tests ZUNCSD. Given an M-by-M partitioned unitary matrix X, where the partition is literally:
Q M-Q
X = [ X11 X12 ] P ,
[ X21 X22 ] M-P
ZUNCSD computes the CSD, and it lands like this:
[ U1 ]**T * [ X11 X12 ] * [ V1 ]
[ U2 ] [ X21 X22 ] [ V2 ]
[ I 0 0 | 0 0 0 ]
[ 0 C 0 | 0 -S 0 ]
[ 0 0 0 | 0 0 -I ]
= [---------------------] = [ D11 D12 ] .
[ 0 0 0 | I 0 0 ] [ D21 D22 ]
[ 0 S 0 | 0 C 0 ]
[ 0 0 I | 0 0 0 ]
It also tests SORCSD2BY1, which, given:
Q
[ X11 ] P ,
[ X21 ] M-P
computes the 2-by-1 CSD:
[ I 0 0 ]
[ 0 C 0 ]
[ 0 0 0 ]
[ U1 ]**T * [ X11 ] * V1 = [----------] = [ D11 ] ,
[ U2 ] [ X21 ] [ 0 0 0 ] [ D21 ]
[ 0 S 0 ]
[ 0 0 I ]
π Parameters π
MβMisINTEGER. Itβs the number of rows of the matrixX, andM >= 0. πPβPisINTEGER. Itβs the number of rows of the matrixX11, andP >= 0.QβQisINTEGER. Itβs the number of columns of the matrixX11, andQ >= 0.XβXisCOMPLEX*16 array, dimension (LDX,M). Itβs the M-by-M matrixX.XFβXFisCOMPLEX*16 array, dimension (LDX,M). Details of the CSD ofX, as returned byZUNCSD; seeZUNCSDfor further details.LDXβLDXisINTEGER. The leading dimension of the arraysXandXF.LDX >= max( 1,M ).U1βU1isCOMPLEX*16 array, dimension(LDU1,P). The P-by-P unitary matrixU1.LDU1βLDU1isINTEGER. The leading dimension of the arrayU1.LDU >= max(1,P).Yes, it saysLDU, bestie. π«ΆU2βU2isCOMPLEX*16 array, dimension(LDU2,M-P). The (M-P)-by-(M-P) unitary matrixU2.LDU2βLDU2isINTEGER. The leading dimension of the arrayU2.LDU >= max(1,M-P).V1TβV1TisCOMPLEX*16 array, dimension(LDV1T,Q). The Q-by-Q unitary matrixV1T.LDV1TβLDV1TisINTEGER. The leading dimension of the arrayV1T.LDV1T >= max(1,Q).V2TβV2TisCOMPLEX*16 array, dimension(LDV2T,M-Q). The (M-Q)-by-(M-Q) unitary matrixV2T.LDV2TβLDV2TisINTEGER. The leading dimension of the arrayV2T.LDV2T >= max(1,M-Q).THETAβTHETAisDOUBLE PRECISION array, dimension MIN(P,M-P,Q,M-Q). The CS values ofX; the essentially diagonal matricesCandSare constructed fromTHETA; see subroutineZUNCSDfor details.IWORKβIWORKisINTEGER array, dimension (M).WORKβWORKisCOMPLEX*16 array, dimension (LWORK).LWORKβLWORKisINTEGER. The dimension of the arrayWORK.RWORKβRWORKisDOUBLE PRECISION array.RESULTβRESULTisDOUBLE PRECISION array, dimension (15). The test ratios are giving:
First, the 2-by-2 CSD:
RESULT(1) = norm( U1'*X11*V1 - D11 ) / ( MAX(1,P,Q)*EPS2 )
RESULT(2) = norm( U1'*X12*V2 - D12 ) / ( MAX(1,P,M-Q)*EPS2 )
RESULT(3) = norm( U2'*X21*V1 - D21 ) / ( MAX(1,M-P,Q)*EPS2 )
RESULT(4) = norm( U2'*X22*V2 - D22 ) / ( MAX(1,M-P,M-Q)*EPS2 )
RESULT(5) = norm( I - U1'*U1 ) / ( MAX(1,P)*ULP )
RESULT(6) = norm( I - U2'*U2 ) / ( MAX(1,M-P)*ULP )
RESULT(7) = norm( I - V1T'*V1T ) / ( MAX(1,Q)*ULP )
RESULT(8) = norm( I - V2T'*V2T ) / ( MAX(1,M-Q)*ULP )
RESULT(9) = 0 if THETA is in increasing order and
all angles are in [0,pi/2]
= ULPINV otherwise.
Then, the 2-by-1 CSD:
RESULT(10) = norm( U1'*X11*V1 - D11 ) / ( MAX(1,P,Q)*EPS2 )
RESULT(11) = norm( U2'*X21*V1 - D21 ) / ( MAX(1,M-P,Q)*EPS2 )
RESULT(12) = norm( I - U1'*U1 ) / ( MAX(1,P)*ULP )
RESULT(13) = norm( I - U2'*U2 ) / ( MAX(1,M-P)*ULP )
RESULT(14) = norm( I - V1T'*V1T ) / ( MAX(1,Q)*ULP )
RESULT(15) = 0 if THETA is in increasing order and
all angles are in [0,pi/2]
= ULPINV otherwise.
( EPS2 = MAX( norm( I - X'*X ) / M, ULP ). )
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 226 of file zcsdts.f.
π Author (auto-generated) π
Generated automatically by Doxygen for LAPACK from the source code.
And thatβs the page, bestie! Footer vibe check: itβs LAPACK, Version 3.12.0, and the file is /home/abui...IG/zcsdts.f(3). Slay. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms