TESTING/EIG/zget23.f(3)
π
TESTING/EIG/zget23.f(3) β Library Functions Manual, bestie edition π
okay so this is the glow-up of the ZGET23 page, and yes itβs giving βeigenvalue checker with main character energy.β π
πΈ NAME πΈ
TESTING/EIG/zget23.f
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine zget23 (comp, isrt, balanc, jtype, thresh, iseed, nounit, n,
a, lda, h, w, w1, vl, ldvl, vr, ldvr, lre, ldlre, rcondv, rcndv1,
rcdvin, rconde, rcnde1, rcdein, scale, scale1, result, work, lwork,
rwork, info)
ZGET23 β thatβs the function weβre hyping up. π
π Function/Subroutine Documentation π
subroutine zget23 (logical comp, integer isrt, character balanc, integer
jtype, double precision thresh, integer, dimension( 4 ) iseed, integer
nounit, integer n, complex*16, dimension( lda, * ) a, integer lda,
complex*16, dimension( lda, * ) h, complex*16, dimension( * ) w,
complex*16, dimension( * ) w1, complex*16, dimension( ldvl, * ) vl,
integer ldvl, complex*16, dimension( ldvr, * ) vr, integer ldvr,
complex*16, dimension( ldlre, * ) lre, integer ldlre, double precision,
dimension( * ) rcondv, double precision, dimension( * ) rcndv1, double
precision, dimension( * ) rcdvin, double precision, dimension( * )
rconde, double precision, dimension( * ) rcnde1, double precision,
dimension( * ) rcdein, double precision, dimension( * ) scale, double
precision, dimension( * ) scale1, double precision, dimension( 11 )
result, complex*16, dimension( * ) work, integer lwork, double
precision, dimension( * ) rwork, integer info)
ZGET23 β again, iconic. π
π― Purpose π―
okay so ZGET23 checks the nonsymmetric eigenvalue problem driver CGEEVX. Hereβs the vibe check, bestie:
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.
| A * VR - VR * W | / ( n |A| ulp )
Here VR is the matrix of unit right eigenvectors. W is a diagonal matrix with diagonal entries W(j).
| 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.
| |VR(i)| - 1 | / ulp and largest component real
VR(i) denotes the i-th column of VR.
| |VL(i)| - 1 | / ulp and largest component real
VL(i) denotes the i-th column of VL.
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.
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.
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.
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.
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.
|RCONDV - RCDVIN| / cond(RCONDV)
RCONDV is the reciprocal right eigenvector condition number computed by ZGEEVX 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.
|RCONDE - RCDEIN| / cond(RCONDE)
RCONDE is the reciprocal eigenvalue condition number computed by ZGEEVX 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βCOMPisLOGICAL.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
ISRTβISRTisINTEGER. IfCOMP = .TRUE.,ISRTindicates in how the eigenvalues corresponding to values inRCDVINandRCDEINare ordered:= 0means the eigenvalues are sorted by increasing real part= 1means the eigenvalues are sorted by increasing imaginary part
If COMP = .FALSE., ISRT is not referenced.
BALANCβBALANCisCHARACTER. 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βJTYPEisINTEGER. Type of input matrix. Used to label output if error occurs.THRESHβTHRESHisDOUBLE PRECISION.
original-text moment: βA test will count as if the , computed as described above, exceeds THRESH.β
Note that the error is scaled to be O(1), so THRESH should be a reasonably small multiple of 1, e.g., 10 or 100. 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βISEEDisINTEGER 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βNOUNITisINTEGER. The FORTRAN unit number for printing out error messages (e.g., if a routine returnsINFOnot equal to 0.)NβNisINTEGER. The dimension ofA.Nmust be at least 0.AβAisCOMPLEX*16 array, dimension (LDA,N). Used to hold the matrix whose eigenvalues are to be computed.LDAβLDAisINTEGER. The leading dimension ofA, andH.LDAmust be at least 1 and at leastN.HβHisCOMPLEX*16 array, dimension (LDA,N). Another copy of the test matrixA, modified byZGEEVX.WβWisCOMPLEX*16 array, dimension (N). Contains the eigenvalues ofA.W1βW1isCOMPLEX*16 array, dimension (N). LikeW, this array contains the eigenvalues ofA, but those computed whenZGEEVXonly computes a partial eigendecomposition, i.e. not the eigenvalues and left and right eigenvectors.VLβVLisCOMPLEX*16 array, dimension (LDVL,N).VLholds the computed left eigenvectors.LDVLβLDVLisINTEGER. Leading dimension ofVL. Must be at leastmax(1,N).VRβVRisCOMPLEX*16 array, dimension (LDVR,N).VRholds the computed right eigenvectors.LDVRβLDVRisINTEGER. Leading dimension ofVR. Must be at leastmax(1,N).LREβLREisCOMPLEX*16 array, dimension (LDLRE,N).LREholds the computed right or left eigenvectors.LDLREβLDLREisINTEGER. Leading dimension ofLRE. Must be at leastmax(1,N).RCONDVβRCONDVisDOUBLE PRECISION array, dimension (N).RCONDVholds the computed reciprocal condition numbers for eigenvectors.RCNDV1βRCNDV1isDOUBLE PRECISION array, dimension (N).RCNDV1holds more computed reciprocal condition numbers for eigenvectors.RCDVINβRCDVINisDOUBLE PRECISION array, dimension (N). WhenCOMP = .TRUE.RCDVINholds the precomputed reciprocal condition numbers for eigenvectors to be compared withRCONDV.RCONDEβRCONDEisDOUBLE PRECISION array, dimension (N).RCONDEholds the computed reciprocal condition numbers for eigenvalues.RCNDE1βRCNDE1isDOUBLE PRECISION array, dimension (N).RCNDE1holds more computed reciprocal condition numbers for eigenvalues.RCDEINβRCDEINisDOUBLE PRECISION array, dimension (N). WhenCOMP = .TRUE.RCDEINholds the precomputed reciprocal condition numbers for eigenvalues to be compared withRCONDE.SCALEβ the original chunk ends right here at theSCALEheading, bestie, so this is the part 1 cutoff; the description continues in part 2. π«ΆSCALEβDOUBLE PRECISIONarray, dimension(N). Holds information describing balancing of matrix. π«ΆSCALE1βDOUBLE PRECISIONarray, dimension(N). Holds information describing balancing of matrix. Yes, bestie, itβs the twin β same deets, same energy. πRESULTβDOUBLE PRECISIONarray, dimension(11). The values computed by the 11 tests described above. RN those values are limited to1/ulp, to avoid overflow. πβ¨WORKβCOMPLEX*16array, dimension(LWORK). Scratch space, periodt. πLWORKβINTEGER. The number of entries inWORK. This must be at least2*N, and2*N+N**2if tests9,10or11are to be performed. No cap, bestie. π₯RWORKβDOUBLE PRECISIONarray, dimension(2*N). πΈINFOβINTEGER. If0, successful exit. If<0, input parameter-INFOhad an incorrect value. If>0,ZGEEVXreturned an error code, the absolute value of which is returned. π«
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 363 of file zget23.f.
π§ Author
Generated automatically by Doxygen for LAPACK from the source code.
Okay thatβs the whole page, bestie β this one is LAPACK Version 3.12.0, from TESTING/EIG/zget23.f(3), and it literally ate. ππ¦β¨
π¦ 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