SGET23(3)
π¦ SGET23(3) β Library Functions Manual π¦
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/sget23.f
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine SGET23 (comp, balanc, jtype, thresh, iseed, nounit, n, a,
lda, h, wr, wi, wr1, wi1, vl, ldvl, vr, ldvr, lre, ldlre, rcondv,
rcndv1, rcdvin, rconde, rcnde1, rcdein, scale, scale1, result, work,
lwork, iwork, info)
SGET23
π¦ Function/Subroutine Documentation π¦
π subroutine SGET23 π
subroutine SGET23 (logical comp, character balanc, integer jtype, real
thresh, integer, dimension( 4 ) iseed, integer nounit, integer n, real,
dimension( lda, * ) a, integer lda, real, dimension( lda, * ) h, real,
dimension( * ) wr, real, dimension( * ) wi, real, dimension( * ) wr1,
real, dimension( * ) wi1, real, dimension( ldvl, * ) vl, integer ldvl,
real, dimension( ldvr, * ) vr, integer ldvr, real, dimension( ldlre, * )
lre, integer ldlre, real, dimension( * ) rcondv, real, dimension( * )
rcndv1, real, dimension( * ) rcdvin, real, dimension( * ) rconde, real,
dimension( * ) rcnde1, real, dimension( * ) rcdein, real, dimension( * )
scale, real, dimension( * ) scale1, real, dimension( 11 ) result, real,
dimension( * ) work, integer lwork, integer, dimension( * ) iwork,
integer info)
SGET23
SGET23
πΈ Purpose πΈ
Okay bestie, SGET23 checks the nonsymmetric eigenvalue problem driver SGEEVX. If COMP = .FALSE., the first 8 of the following tests will be performed on the input matrix A, and also test 9 if LWORK is sufficiently large. if COMP is .TRUE. all 11 tests will be performed. Periodt. π
Hereβs the test lineup, no cap:
- Test 1 β formula:
| A * VR - VR * W | / ( n |A| ulp )
Here VR is the matrix of unit right eigenvectors. W is a block diagonal matrix, with a 1x1 block for each real eigenvalue and a 2x2 block for each complex conjugate pair. If eigenvalues j and j+1 are a complex conjugate pair, so WR(j) = WR(j+1) = wr and WI(j) = - WI(j+1) = wi, then the 2 x 2 block corresponding to the pair will be:
( wr wi )
( -wi wr )
Such a block multiplying an n x 2 matrix ( ur ui ) on the right will be the same as multiplying ur + i*ui by wr + i*wi.
- Test 2 β formula:
| A**H * VL - VL * W**H | / ( n |A| ulp )
Here VL is the matrix of unit left eigenvectors, A**H is the conjugate transpose of A, and W is as above.
- Test 3 β formula:
| |VR(i)| - 1 | / ulp and largest component real
VR(i) denotes the i-th column of VR.
- Test 4 β formula:
| |VL(i)| - 1 | / ulp and largest component real
VL(i) denotes the i-th column of VL.
- Test 5 β formula:
0 if W(full) = W(partial), 1/ulp otherwise
W(full) denotes the eigenvalues computed when VR, VL, RCONDV and RCONDE are also computed, and W(partial) denotes the eigenvalues computed when only some of VR, VL, RCONDV, and RCONDE are computed.
- Test 6 β formula:
0 if VR(full) = VR(partial), 1/ulp otherwise
VR(full) denotes the right eigenvectors computed when VL, RCONDV and RCONDE are computed, and VR(partial) denotes the result when only some of VL and RCONDV are computed.
- Test 7 β formula:
0 if VL(full) = VL(partial), 1/ulp otherwise
VL(full) denotes the left eigenvectors computed when VR, RCONDV and RCONDE are computed, and VL(partial) denotes the result when only some of VR and RCONDV are computed.
- Test 8 β formula:
0 if SCALE, ILO, IHI, ABNRM (full) =
SCALE, ILO, IHI, ABNRM (partial)
1/ulp otherwise
SCALE, ILO, IHI and ABNRM describe how the matrix is balanced. (full) is when VR, VL, RCONDE and RCONDV are also computed, and (partial) is when some are not computed.
- Test 9 β formula:
0 if RCONDV(full) = RCONDV(partial), 1/ulp otherwise
RCONDV(full) denotes the reciprocal condition numbers of the right eigenvectors computed when VR, VL and RCONDE are also computed. RCONDV(partial) denotes the reciprocal condition numbers when only some of VR, VL and RCONDE are computed.
- Test 10 β formula:
|RCONDV - RCDVIN| / cond(RCONDV)
RCONDV is the reciprocal right eigenvector condition number computed by SGEEVX and RCDVIN (the precomputed true value) is supplied as input. cond(RCONDV) is the condition number of RCONDV, and takes errors in computing RCONDV into account, so that the resulting quantity should be O(ULP). cond(RCONDV) is essentially given by norm(A)/RCONDE.
- Test 11 β formula:
|RCONDE - RCDEIN| / cond(RCONDE)
RCONDE is the reciprocal eigenvalue condition number computed by SGEEVX and RCDEIN (the precomputed true value) is supplied as input. cond(RCONDE) is the condition number of RCONDE, and takes errors in computing RCONDE into account, so that the resulting quantity should be O(ULP). cond(RCONDE) is essentially given by norm(A)/RCONDV.
π«Ά Parameters π«Ά
COMPβCOMP is LOGICAL.COMPdescribes which input tests to perform:= .FALSE.if the computed condition numbers are not to be tested againstRCDVINandRCDEIN= .TRUE.if they are to be compared
BALANCβBALANC is CHARACTER. Describes the balancing option to be tested.= 'N'for no permuting or diagonal scaling= 'P'for permuting but no diagonal scaling= 'S'for no permuting but diagonal scaling= 'B'for permuting and diagonal scaling
JTYPEβJTYPE is INTEGER. Type of input matrix. Used to label output if error occurs.THRESHβTHRESH is REAL. A test will count as if the , computed as described above, exceedsTHRESH. Note that the error is scaled to beO(1), soTHRESHshould be a reasonably small multiple of1, e.g.,10or100. In particular, it should not depend on the precision (single vs. double) or the size of the matrix. It must be at least zero.ISEEDβISEED is INTEGER array, dimension (4). IfCOMP = .FALSE., the random number generator seed used to produce matrix. IfCOMP = .TRUE.,ISEED(1) = the number of the example. Used to label output if error occurs.NOUNITβNOUNIT is INTEGER. The FORTRAN unit number for printing out error messages (e.g., if a routine returnsINFOnot equal to0.)NβN is INTEGER. The dimension ofA.Nmust be at least0.AβA is REAL array, dimension (LDA,N). Used to hold the matrix whose eigenvalues are to be computed.LDAβLDA is INTEGER. The leading dimension ofA, andH.LDAmust be at least1and at leastN.HβH is REAL array, dimension (LDA,N). Another copy of the test matrixA, modified bySGEEVX.WRβWR is REAL array, dimension (N)WIβWI is REAL array, dimension (N). The real and imaginary parts of the eigenvalues ofA. On exit,WR + WI*iare the eigenvalues of the matrix inA.WR1βWR1 is REAL array, dimension (N)WI1βWI1 is REAL array, dimension (N). LikeWR,WI, these arrays contain the eigenvalues ofA, but those computed whenSGEEVXonly computes a partial eigendecomposition, i.e. not the eigenvalues and left and right eigenvectors.VLβVL is REAL array, dimension (LDVL,N).VLholds the computed left eigenvectors.LDVLβLDVL is INTEGER. Leading dimension ofVL. Must be at leastmax(1,N).VRβVR is REAL array, dimension (LDVR,N).VRholds the computed right eigenvectors.LDVRβLDVR is INTEGER. Leading dimension ofVR. Must be at leastmax(1,N).LREβLRE is REAL array, dimension (LDLRE,N).LREholds the computed right or left eigenvectors.LDLREβLDLRE is INTEGER. Leading dimension ofLRE. Must be at leastmax(1,N).RCONDVβRCONDV is REAL array, dimension (N).RCONDVholds the computed reciprocal condition numbers for eigenvectors.RCNDV1βRCNDV1 is REAL array, dimension (N).RCNDV1holds more computed reciprocal condition numbers for eigenvectors.RCDVINβRCDVIN is REAL array, dimension (N). WhenCOMP = .TRUE.RCDVINholds the precomputed reciprocal condition numbers for eigenvectors to be compared withRCONDV.RCONDEβRCONDE is REAL array, dimension (N).RCONDEholds the computed reciprocal condition numbers for eigenvalues.RCNDE1βRCNDE1 is REAL array, dimension (N).RCNDE1holds more computed reciprocal condition numbers for eigenvalues.RCDEINRCDEINβRCDEINis aREALarray, dimension(N). WhenCOMP = .TRUE.,RCDEINholds the precomputed reciprocal condition numbers for eigenvalues to be compared withRCONDE. precomputed and ready to serve β¨SCALEβSCALEis aREALarray, dimension(N). Holds information describing balancing of matrix. matrix-balancing lore πSCALE1βSCALE1is aREALarray, dimension(N). Holds information describing balancing of matrix. same energy, different name π¦RESULTβRESULTis aREALarray, dimension(11). The values computed by the 11 tests described above. The values are currently limited to1/ulp, to avoid overflow. 11 tests, 11 little receipts π§Ύβ¨WORKβWORKis aREALarray, dimension(LWORK). the workspace bestie π«ΆLWORKβLWORKis anINTEGER. The number of entries inWORK. This must be at least3*N, and6*N+N**2if tests 9, 10 or 11 are to be performed. do not skimp onLWORK, fr fr πIWORKβIWORKis anINTEGERarray, dimension(2*N). integer squad πINFOβINFOis anINTEGER. If0, successful exit. If<0, input parameter-INFOhad an incorrect value. If>0,SGEEVXreturned an error code, the absolute value of which is returned. read the exit code, bestie π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 373 of file sget23.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and thatβs the whole page, bestie π footer sign-off: LAPACK Version 3.12.0, source /home/abui...IG/sget23.f(3) β the line you pasted doesnβt have a separate date on it, so no invented date here, periodt π
π¦ 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