TESTING/EIG/sgsvts3.f(3)
π NAME π
TESTING/EIG/sgsvts3.f β bestie, this is the LAPACK Library Functions Manual page for that file. The routine it documents is SGSVTS3, and yes, it's giving very specific matrix-testing energy. β¨
β¨ SYNOPSIS β¨
Functions/Subroutines
sgsvts3β the subroutine. Official name:SGSVTS3.
subroutine sgsvts3 (integer m, integer p, integer n, real, dimension( lda, * ) a, real, dimension( lda, * ) af, integer lda, real, dimension( ldb, * ) b, real, dimension( ldb, * ) bf, integer ldb, real, dimension( ldu, * ) u, integer ldu, real, dimension( ldv, * ) v, integer ldv, real, dimension( ldq, * ) q, integer ldq, real, dimension( * ) alpha, real, dimension( * ) beta, real, dimension( ldr, * ) r, integer ldr, integer, dimension( * ) iwork, real, dimension( lwork ) work, integer lwork, real, dimension( * ) rwork, real, dimension( 6 ) result)
π¦ Function/Subroutine Documentation π¦
subroutine sgsvts3 (integer m, integer p, integer n, real, dimension( lda, * ) a, real, dimension( lda, * ) af, integer lda, real, dimension( ldb, * ) b, real, dimension( ldb, * ) bf, integer ldb, real, dimension( ldu, * ) u, integer ldu, real, dimension( ldv, * ) v, integer ldv, real, dimension( ldq, * ) q, integer ldq, real, dimension( * ) alpha, real, dimension( * ) beta, real, dimension( ldr, * ) r, integer ldr, integer, dimension( * ) iwork, real, dimension( lwork ) work, integer lwork, real, dimension( * ) rwork, real, dimension( 6 ) result)
This one is SGSVTS3. Iconic name, extremely specific job. π
πΈ Purpose πΈ
SGSVTS3 tests SGGSVD3, which computes the GSVD of an M-by-N matrix A and a P-by-N matrix B:
U'*A*Q = D1*R and V'*B*Q = D2*R.
That's the whole point, iykyk. π«Ά
π Parameters π
MβMisINTEGER; the number of rows of the matrixA.M >= 0.PβPisINTEGER; the number of rows of the matrixB.P >= 0.NβNisINTEGER; the number of columns of the matricesAandB.N >= 0.AβAisREALarray, dimension(LDA,M); theM-by-NmatrixA.AFβAFisREALarray, dimension(LDA,N); details of the GSVD ofAandB, as returned bySGGSVD3, seeSGGSVD3for further details.LDAβLDAisINTEGER; the leading dimension of the arraysAandAF.LDA >= max( 1,M ).BβBisREALarray, dimension(LDB,P); on entry, theP-by-NmatrixB.BFβBFisREALarray, dimension(LDB,N); details of the GSVD ofAandB, as returned bySGGSVD3, seeSGGSVD3for further details.LDBβLDBisINTEGER; the leading dimension of the arraysBandBF.LDB >= max(1,P).UβUisREALarray,dimension(LDU,M); theMbyMorthogonal matrixU.LDUβLDUisINTEGER; the leading dimension of the arrayU.LDU >= max(1,M).VβVisREALarray,dimension(LDV,M); thePbyPorthogonal matrixV.LDVβLDVisINTEGER; the leading dimension of the arrayV.LDV >= max(1,P).QβQisREALarray,dimension(LDQ,N); theNbyNorthogonal matrixQ.LDQβLDQisINTEGER; the leading dimension of the arrayQ.LDQ >= max(1,N).ALPHAβALPHAisREALarray, dimension(N).BETAβBETAisREALarray, dimension(N). The generalized singular value pairs ofAandB; the βdiagonalβ matricesD1andD2are constructed fromALPHAandBETA, see subroutineSGGSVD3for details.RβRisREALarray,dimension(LDQ,N); the upper triangular matrixR.LDRβLDRisINTEGER; the leading dimension of the arrayR.LDR >= max(1,N).IWORKβIWORKisINTEGERarray, dimension(N).WORKβWORKisREALarray, dimension(LWORK).LWORKβLWORKisINTEGER; the dimension of the arrayWORK,LWORK >= max(M,P,N)*max(M,P,N).RWORKβRWORKisREALarray, dimension(max(M,P,N)).RESULTβRESULTisREALarray, dimension(6); the test ratios:
RESULT(1) = norm( U'*A*Q - D1*R ) / ( MAX(M,N)*norm(A)*ULP)
RESULT(2) = norm( V'*B*Q - D2*R ) / ( MAX(P,N)*norm(B)*ULP)
RESULT(3) = norm( I - U'*U ) / ( M*ULP )
RESULT(4) = norm( I - V'*V ) / ( P*ULP )
RESULT(5) = norm( I - Q'*Q ) / ( N*ULP )
RESULT(6) = 0 if ALPHA is in decreasing order;
= ULPINV otherwise.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 207 of file sgsvts3.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
π That's the whole manual, bestie! Source/version: LAPACK Version 3.12.0; page: TESTING/EIG/sgsvts3.f(3). Periodt. π
π¦ 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