CDRVEV(3)
π CDRVEV(3) β Library Functions Manual π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/cdrvev.f
Tiny note, bestie: the source text has a few blank holes where a symbol got eaten by formatting. I'm showing those as β£β£ so you can see them, and I am not out here guessing what was supposed to be there. π«Ά
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/cdrvev.f β that's the file, and that's the whole name section. Iconic minimalism, honestly. π
πΈ SYNOPSIS πΈ
π§ Functions/Subroutines π§
subroutine CDRVEV (nsizes, nn, ntypes, dotype, iseed, thresh, nounit, a,
lda, h, w, w1, vl, ldvl, vr, ldvr, lre, ldlre, result, work, nwork,
rwork, iwork, info)
CDRVEV
π₯ Function/Subroutine Documentation π₯
subroutine CDRVEV (integer nsizes, integer, dimension( * ) nn, integer
ntypes, logical, dimension( * ) dotype, integer, dimension( 4 ) iseed,
real thresh, integer nounit, 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( 7 ) result, complex,
dimension( * ) work, integer nwork, real, dimension( * ) rwork, integer,
dimension( * ) iwork, integer info)
CDRVEV
π¦ Purpose π¦
Okay so here's the tea: CDRVEV checks the nonsymmetric eigenvalue problem driver CGEEV. No cap, it's giving very thorough bestie energy. π
When CDRVEV is called, a number of matrix β£β£ () and a number of matrix β£β£ are specified. For each size β£β£ () and each type of matrix, one matrix will be generated and used to test the nonsymmetric eigenroutines. For each matrix, 7 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 | / ulpand whether largest component real
VR(i) denotes the i-th column of VR.
| |VL(i)| - 1 | / ulpand whether largest component real
VL(i) denotes the i-th column of VL.
W(full) = W(partial)
W(full) denotes the eigenvalues computed when both VR and VL are also computed, and W(partial) denotes the eigenvalues computed when only W, only W and VR, or only W and VL are computed.
VR(full) = VR(partial)
VR(full) denotes the right eigenvectors computed when both VR and VL are computed, and VR(partial) denotes the result when only VR is computed.
VL(full) = VL(partial)
VL(full) denotes the left eigenvectors computed when both VR and VL are also computed, and VL(partial) denotes the result when only VL is computed.
The β£β£ are specified by an array NN(1:NSIZES); the value of each element NN(j) specifies one size. The β£β£ are specified by a logical array DOTYPE( 1:NTYPES ); if DOTYPE(j) is .TRUE., then matrix type β£β£ will be generated. Currently, the list of possible types is:
- The zero matrix.
- The identity matrix.
- A (transposed) Jordan block, with 1's on the diagonal.
- A diagonal matrix with evenly spaced entries 1, ..., ULP
β£β£and random complex angles. (ULP = (first number larger than 1) - 1 ) - A diagonal matrix with geometrically spaced entries 1, ..., ULP
β£β£and random complex angles. - A diagonal matrix with
β£β£entries 1, ULP, ..., ULP and random complex angles. - Same as (4), but multiplied by a constant near the overflow threshold
- Same as (4), but multiplied by a constant near the underflow threshold
- A matrix of the form
U' T U, whereUis unitary andThas evenly spaced entries 1, ..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis unitary andThas geometrically spaced entries 1, ..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis unitary andThasβ£β£entries 1, ULP,..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis unitary andThas complex eigenvalues randomly chosen fromULP < |z| < 1and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas evenly spaced entries 1, ..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas geometrically spaced entries 1, ..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThasβ£β£entries 1, ULP,..., ULP with random complex angles on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas complex eigenvalues randomly chosen fromULP < |z| < 1and randomO(1)entries in the upper triangle. - Same as (16), but multiplied by a constant near the overflow threshold
- Same as (16), but multiplied by a constant near the underflow threshold
- Nonsymmetric matrix with random entries chosen from
|z| < 1IfNis at least 4, all entries in first two rows and last row, and first column and last two columns are zero. - Same as (19), but multiplied by a constant near the overflow threshold
- Same as (19), but multiplied by a constant near the underflow threshold
π Parameters π
NSIZESβNSIZESisINTEGER. The number of sizes of matrices to use. If it is zero,CDRVEVdoes nothing. It must be at least zero.NNβNNisINTEGERarray, dimension(NSIZES). An array containing the sizes to be used for the matrices. Zero values will be skipped. The values must be at least zero.NTYPESβNTYPESisINTEGER. The number of elements inDOTYPE. If it is zero,CDRVEVdoes nothing. It must be at least zero. If it isMAXTYP+1andNSIZESis 1, then an additional type,MAXTYP+1is defined, which is to use whatever matrix is inA. This is only useful ifDOTYPE(1:MAXTYP)is.FALSE.andDOTYPE(MAXTYP+1)is.TRUE..DOTYPEβDOTYPEisLOGICALarray, dimension(NTYPES). IfDOTYPE(j)is.TRUE., then for each size inNNa matrix of that size and of typejwill be generated. IfNTYPESis smaller than the maximum number of types defined (PARAMETER MAXTYP), then typesNTYPES+1throughMAXTYPwill not be generated. IfNTYPESis larger thanMAXTYP,DOTYPE(MAXTYP+1)throughDOTYPE(NTYPES)will be ignored.ISEEDβISEEDisINTEGERarray, dimension(4). On entryISEEDspecifies the seed of the random number generator. The array elements should be between0and4095; if not they will be reduced mod4096. Also,ISEED(4)must be odd. The random number generator uses a linear congruential sequence limited to small integers, and so should produce machine independent random numbers. The values ofISEEDare changed on exit, and can be used in the next call toCDRVEVto continue the same random number sequence.THRESHβTHRESHisREAL. 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.NOUNITβNOUNITisINTEGER. The FORTRAN unit number for printing out error messages (e.g., if a routine returnsINFOnot equal to0.)AβAisCOMPLEXarray, dimension(LDA, max(NN)). Used to hold the matrix whose eigenvalues are to be computed. On exit,Acontains the last matrix actually used.LDAβLDAisINTEGER. The leading dimension ofA, andH.LDAmust be at least1and at leastmax(NN).HβHisCOMPLEXarray, dimension(LDA, max(NN)). Another copy of the test matrixA, modified byCGEEV.WβWisCOMPLEXarray, dimension(max(NN)). The eigenvalues ofA. On exit,Ware the eigenvalues of the matrix inA.W1βW1isCOMPLEXarray, dimension(max(NN)). LikeW, this array contains the eigenvalues ofA, but those computed whenCGEEVonly computes a partial eigendecomposition, i.e. not the eigenvalues and left and right eigenvectors.VLβ (this is exactly where part 1 of the source text stops, bestie)VLβVLisCOMPLEX array, dimension (LDVL, max(NN)). It holds the computed left eigenvectors. πLDVLβLDVLisINTEGER. Leading dimension ofVL. Must be at leastmax(1,max(NN)). β¨VRβVRisCOMPLEX array, dimension (LDVR, max(NN)). It holds the computed right eigenvectors. π¦LDVRβLDVRisINTEGER. Leading dimension ofVR. Must be at leastmax(1,max(NN)). πLREβLREisCOMPLEX array, dimension (LDLRE, max(NN)). It holds the computed right or left eigenvectors. πΈLDLREβLDLREisINTEGER. Leading dimension ofLRE. Must be at leastmax(1,max(NN)). π«ΆRESULTβRESULTisREAL array, dimension (7). These are the values computed by the seven tests described above. The values are currently limited to1/ulp, to avoid overflow. πWORKβWORKisCOMPLEX array, dimension (NWORK). π§NWORKβNWORKisINTEGER. The number of entries inWORK. This must be at least5*NN(j)+2*NN(j)**2for allj. π₯RWORKβRWORKisREAL array, dimension (2*max(NN)). πIWORKβIWORKisINTEGER array, dimension (max(NN)). βINFOβINFOisINTEGER. If0, then everything ran OK. π-1:NSIZES < 0-2: SomeNN(j) < 0-3:NTYPES < 0-6:THRESH < 0-9:LDA < 1orLDA < NMAX, whereNMAXismax( NN(j) ).-14:LDVL < 1orLDVL < NMAX, whereNMAXismax( NN(j) ).-16:LDVR < 1orLDVR < NMAX, whereNMAXismax( NN(j) ).-18:LDLRE < 1orLDLRE < NMAX, whereNMAXismax( NN(j) ).-21:NWORKtoo small.- If
CLATMR,CLATMS,CLATMEorCGEEVreturns an error code, the absolute value of it is returned. π
π§ Some Local Variables and Parameters π§
ZERO,ONEβ Real0and1.MAXTYPβ The number of types defined.NMAXβ Largest value inNN.NERRSβ The number of tests which have exceededTHRESH.COND,CONDS,IMODEβ Values to be passed to the matrix generators.ANORMβ Norm ofA; passed to matrix generators.OVFL,UNFLβ Overflow and underflow thresholds.ULP,ULPINVβ Finest relative precision and its inverse.RTULP,RTULPIβ Square roots of the previous 4 values.
The following four arrays decode JTYPE:
KTYPE(j)β The general type (1-10) for type .KMODE(j)β TheMODEvalue to be passed to the matrix generator for type .KMAGN(j)β The order of magnitude (O(1),O(overflow^(1/2) ),O(underflow^(1/2) )KCONDS(j)βSelectwwhetherCONDSis to be1or1/sqrt(ulp). (0means irrelevant.) yes,Selectwis literally what it says π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 387 of file cdrvev.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, thatβs the whole page β footer vibes say LAPACK Version 3.12.0, and the source/version corner points at /home/abui...IG/cdrvev.f(3). mwah πβ¨
π¦ 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