TESTING/EIG/cget23.f(3)
π TESTING/EIG/cget23.f β from the Library Functions Manual β¨
okay so bestie, buckle up, we're reading a Fortran manpage together and honestly? it's kind of iconic. this is TESTING/EIG/cget23.f, and it lives in the library functions manual like it owns the place π
β¨ NAME β¨
TESTING/EIG/cget23.f β that's it, that's the name, no notes π
πΈ SYNOPSIS πΈ
Functions/Subroutines
the whole squad of arguments, one subroutine, zero chill:
subroutine cget23 (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)
CGET23 β say it with your chest π
π¦ Function/Subroutine Documentation π¦
the full signature, in all its glory π
subroutine cget23 (logical comp, integer isrt, character balanc, integer
jtype, real thresh, integer, dimension( 4 ) iseed, integer nounit,
integer n, complex, dimension( lda, * ) a, integer lda, complex,
dimension( lda, * ) h, complex, dimension( * ) w, complex, dimension( *
) w1, complex, dimension( ldvl, * ) vl, integer ldvl, complex,
dimension( ldvr, * ) vr, integer ldvr, complex, 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,
complex, dimension( * ) work, integer lwork, real, dimension( * ) rwork,
integer info)
CGET23 β¨ (yes it says it twice, we love a routine that knows its own name π
)
π§ Purpose π§
π bestie listen:CGET23checks the nonsymmetric eigenvalue problem driverCGEEVX. that's the whole assignment.
if COMP = .FALSE., the first 8 of the following tests get performed on the input matrix A, and also test 9 if LWORK is sufficiently large. if COMP is .TRUE., all 11 tests get performed. no skipping, no shortcuts, all eleven π€
| 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.
0ifW(full) = W(partial),1/ulpotherwise
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.
0ifVR(full) = VR(partial),1/ulpotherwise
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.
0ifVL(full) = VL(partial),1/ulpotherwise
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.
0ifSCALE, ILO, IHI, ABNRM (full) = SCALE, ILO, IHI, ABNRM (partial),1/ulpotherwise
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.
0ifRCONDV(full) = RCONDV(partial),1/ulpotherwise
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 CGEEVX 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 CGEEVX 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.
it describes 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 π¦
ISRT is INTEGER.
if COMP = .TRUE., ISRT indicates in how the eigenvalues corresponding to values in RCDVIN and RCDEIN are 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. (it's just vibing in the corner π«Ά)
BALANC πΈ
BALANC is CHARACTER.
it 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 an error occurs. bestie's just a name tag π·οΈ
THRESH π₯
THRESH is REAL.
a test will count as failing if the value, 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. no negative threshold shenanigans, that's not the vibe π
ISEED π
ISEED is INTEGER array, dimension (4).
if COMP = .FALSE., the random number generator seed used to produce matrix.
if COMP = .TRUE., ISEED(1) = the number of the example.
used to label output if an error occurs.
NOUNIT π§
NOUNIT is INTEGER.
the FORTRAN unit number for printing out error messages (e.g., if a routine returns INFO not equal to 0).
N β
N is INTEGER.
the dimension of A. N must be at least 0.
A π
A is COMPLEX array, dimension (LDA,N).
used to hold the matrix whose eigenvalues are to be computed.
LDA π
LDA is INTEGER.
the leading dimension of A, and H. LDA must be at least 1 and at least N.
H π
H is COMPLEX array, dimension (LDA,N).
another copy of the test matrix A, modified by CGEEVX. she's been through things π
W β¨
W is COMPLEX array, dimension (N).
contains the eigenvalues of A.
W1 π¦
W1 is COMPLEX array, dimension (N).
like W, this array contains the eigenvalues of A, but those computed when CGEEVX only computes a partial eigendecomposition, i.e. not the eigenvalues and left and right eigenvectors.
VL πΈ
VL is COMPLEX array, dimension (LDVL,N).
VL holds the computed left eigenvectors.
LDVL π«Ά
LDVL is INTEGER.
leading dimension of VL. must be at least max(1,N).
VR π₯
VR is COMPLEX array, dimension (LDVR,N).
VR holds the computed right eigenvectors.
LDVR π
LDVR is INTEGER.
leading dimension of VR. must be at least max(1,N).
LRE π
LRE is COMPLEX array, dimension (LDLRE,N).
LRE holds the computed right or left eigenvectors.
LDLRE π
LDLRE is INTEGER.
leading dimension of LRE. must be at least max(1,N).
RCONDV β
RCONDV is REAL array, dimension (N).
RCONDV holds the computed reciprocal condition numbers for eigenvectors.
RCNDV1 π
RCNDV1 is REAL array, dimension (N).
RCNDV1 holds more computed reciprocal condition numbers for eigenvectors. (yes, "more" β there's always more π)
RCDVIN π
RCDVIN is REAL array, dimension (N).
when COMP = .TRUE., RCDVIN holds the precomputed reciprocal condition numbers for eigenvectors to be compared with RCONDV.
RCONDE π§
RCONDE is REAL array, dimension (N).
RCONDE holds the computed reciprocal condition numbers for eigenvalues.
RCNDE1 πΈ
RCNDE1 is REAL array, dimension (N).
RCNDE1 holds more computed reciprocal condition numbers for eigenvalues.
RCDEIN π
RCDEIN is REAL array, dimension (N).
when COMP = .TRUE., RCDEIN holds the precomputed reciprocal condition numbers for eigenvalues to be compared with RCONDE.
SCALE π₯
SCALE is REAL array, dimension (N).
holds information describing balancing of matrix.
SCALE1 β¨
SCALE1 is REAL array, dimension (N).
holds information describing balancing of matrix. (twins π )
RESULTβ¦ π
and that's exactly where the page we've got runs out bestie β RESULT is up next, so hold that thought π«Ά
RESULTβ aREALarray, dimension(11)π these are the values computed by the 11 tests described above, and rn they're capped at1/ulpso nothing overflows and ruins the vibe. no cap, overflow is NOT the move πWORKβ aCOMPLEXarray, dimension(LWORK)β¨ your workspace bestie, she's complex and she's here to work π«ΆLWORKβ anINTEGERπ the number of entries inWORK. This must be at least2*N, and2*N+N**2if tests 9, 10 or 11 are to be performed. so likeβ¦ if you're doing the extra tests, size her up accordingly, iykyk πRWORKβ aREALarray, dimension(2*N)πΈ real ones only, and there's2*Nof them πINFOβ anINTEGERβ the whole mood report:- If
0, successful exit. slay π - If
<0, input parameter-INFOhad an incorrect value. not me forgetting to check the args π - If
>0,CGEEVXreturned an error code, the absolute value of which is returned. so yeah, that's a real error, not a drill ππ₯
- If
β¨ Author β¨
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 363 of file cget23.f. π
π Author (the Doxygen one) π
Generated automatically by Doxygen for LAPACK from the source code. the robots wrote this part, bestie π€β¨
okay bestie that's the whole page π this lil beauty comes from LAPACK Version 3.12.0, file TESTING/EIG/cget23.f(3) β go off and test those eigenbaddies β¨ππ¦
π¦ 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