DDRVES(3)
π DDRVES(3) π
from the Library Functions Manual β section 3, bestie. The header path in the original is /home/abui...IG/ddrves.f(3) (truncated like that, no cap).
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/EIG/ddrves.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine DDRVES (nsizes, nn, ntypes, dotype, iseed, thresh, nounit, a,
lda, h, ht, wr, wi, wrt, wit, vs, ldvs, result, work, nwork, iwork,
bwork, info)
DDRVES
π¦ Function/Subroutine Documentation π¦
subroutine DDRVES (integer nsizes, integer, dimension( * ) nn, integer
ntypes, logical, dimension( * ) dotype, integer, dimension( 4 ) iseed,
double precision thresh, integer nounit, double precision, dimension(
lda, * ) a, integer lda, double precision, dimension( lda, * ) h, double
precision, dimension( lda, * ) ht, double precision, dimension( * ) wr,
double precision, dimension( * ) wi, double precision, dimension( * )
wrt, double precision, dimension( * ) wit, double precision, dimension(
ldvs, * ) vs, integer ldvs, double precision, dimension( 13 ) result,
double precision, dimension( * ) work, integer nwork, integer,
dimension( * ) iwork, logical, dimension( * ) bwork, integer info)
DDRVES
π Purpose π
Ok so bestie, DDRVES is out here checking the nonsymmetric eigenvalue (Schur form) problem driver DGEES. Iconic behavior.
When DDRVES is called, a number of matrix sizes (NSIZES) and a number of matrix types (NTYPES) are specified. For each size (NN(j)) and each type of matrix, one matrix gets generated and used to test the nonsymmetric eigenroutines. For each matrix, 13 tests will be performed:
0ifTis in Schur form,1/ulpotherwise β no sorting of eigenvalues.| A - VS T VS' | / ( n |A| ulp )HereVSis the matrix of Schur eigenvectors, andTis in Schur form β no sorting of eigenvalues.| I - VS VS' | / ( n ulp )β no sorting of eigenvalues.0ifWR+sqrt(-1)*WIare eigenvalues ofT,1/ulpotherwise β no sorting of eigenvalues.0ifT(with VS) = T(without VS),1/ulpotherwise β no sorting of eigenvalues.0if eigenvalues(with VS) = eigenvalues(without VS),1/ulpotherwise β no sorting of eigenvalues.0ifTis in Schur form,1/ulpotherwise β with sorting of eigenvalues.| A - VS T VS' | / ( n |A| ulp )HereVSis the matrix of Schur eigenvectors, andTis in Schur form β with sorting of eigenvalues.| I - VS VS' | / ( n ulp )β with sorting of eigenvalues.0ifWR+sqrt(-1)*WIare eigenvalues ofT,1/ulpotherwise β with sorting of eigenvalues.0ifT(with VS) = T(without VS),1/ulpotherwise β with sorting of eigenvalues.0if eigenvalues(with VS) = eigenvalues(without VS),1/ulpotherwise β with sorting of eigenvalues.- if sorting worked and
SDIMis the number of eigenvalues which wereSELECTed.
The sizes are specified by an array NN(1:NSIZES); the value of each element NN(j) specifies one size. The types are specified by a logical array DOTYPE( 1:NTYPES ); if DOTYPE(j) is .TRUE., then matrix type j will be generated. Currently, the list of possible types is:
- The zero matrix.
- The identity matrix.
- A (transposed) Jordan block, with
1'son the diagonal. - A diagonal matrix with evenly spaced entries
1, ..., ULPand random signs. (ULP = (first number larger than 1) - 1) - A diagonal matrix with geometrically spaced entries
1, ..., ULPand random signs. - A diagonal matrix with entries
1, ULP, ..., ULPand random signs. - 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 orthogonal andThas evenly spaced entries1, ..., ULPwith random signs on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis orthogonal andThas geometrically spaced entries1, ..., ULPwith random signs on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis orthogonal andThas entries1, ULP,..., ULPwith random signs on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
U' T U, whereUis orthogonal andThas real or complex conjugate paired eigenvalues randomly chosen from( ULP, 1 )and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas evenly spaced entries1, ..., ULPwith random signs 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 entries1, ..., ULPwith random signs on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas entries1, ULP,..., ULPwith random signs on the diagonal and randomO(1)entries in the upper triangle. - A matrix of the form
X' T X, whereXhas conditionSQRT( ULP )andThas real or complex conjugate paired eigenvalues randomly chosen from( ULP, 1 )and 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
(-1,1). IfNis 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. Itβs the number of sizes of matrices to use. If it is zero,DDRVESdoes nothing. It must be at least zero.NNβNNisINTEGER array, 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,DDRVESdoes nothing. It must be at least zero. If it isMAXTYP+1andNSIZESis 1, then an additional type,MAXTYP+1, is defined, which is to use whatever matrix is inA. This is only useful ifDOTYPE(1:MAXTYP)is.FALSE.andDOTYPE(MAXTYP+1)is.TRUE..DOTYPEβDOTYPEisLOGICAL array, 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βISEEDisINTEGER array, dimension (4). On entryISEEDspecifies the seed of the random number generator. The array elements should be between 0 and 4095; if not they will be reducedmod 4096. 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 toDDRVESto continue the same random number sequence.
ISEED(4) must be odd β like, fr fr, not optional bestie.
THRESHβTHRESHisDOUBLE PRECISION. A test will count as failed if the error, computed as described above, exceedsTHRESH. Note that the error is scaled to beO(1), soTHRESHshould be a reasonably small multiple of 1, 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. TheFORTRANunit number for printing out error messages (e.g., if a routine returnsINFOnot equal to 0.)AβAisDOUBLE PRECISION array, 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 least 1 and at leastmax(NN).HβHisDOUBLE PRECISION array, dimension (LDA, max(NN)). Another copy of the test matrixA, modified byDGEES.HTβ the original excerpt cuts off right here; part 2 picks up the rest of this parameterβs description π«ΆHTβDOUBLE PRECISIONarray, dimension(LDA, max(NN)). Yet another copy of the test matrixAβ this one gets modified byDGEES. πWRβDOUBLE PRECISIONarray, dimension(max(NN)).WIβDOUBLE PRECISIONarray, dimension(max(NN)). These two hold the real and imaginary parts of the eigenvalues ofA. On exit,WR + WI*iare the eigenvalues of the matrix inA. β¨WRTβDOUBLE PRECISIONarray, dimension(max(NN)).WITβDOUBLE PRECISIONarray, dimension(max(NN)). LikeWR,WI, these arrays contain the eigenvalues ofAβ but the ones computed whenDGEESonly computes a partial eigendecomposition, i.e. not Schur vectors. π«ΆVSβDOUBLE PRECISIONarray, dimension(LDVS, max(NN)).VSholds the computed Schur vectors. iconic.LDVSβINTEGER. Leading dimension ofVS. Must be at leastmax(1,max(NN)).RESULTβDOUBLE PRECISIONarray, dimension(13). The values computed by the 13 tests described above. Heads up: the values are currently limited to1/ulp, to avoid overflow. π©·WORKβDOUBLE PRECISIONarray, dimension(NWORK).NWORKβINTEGER. The number of entries inWORK. This must be at least5*NN(j)+2*NN(j)**2for allj. no cap, it really does scale like that πIWORKβINTEGERarray, dimension(max(NN)).BWORKβLOGICALarray, dimension(max(NN)).INFOβINTEGER. If0, then everything ran OK. π The negative values mean:-1:NSIZES < 0-2: someNN(j) < 0-3:NTYPES < 0-6:THRESH < 0-9:LDA < 1orLDA < NMAX, whereNMAXismax( NN(j) ).-17:LDVS < 1orLDVS < NMAX, whereNMAXismax( NN(j) ).-20:NWORKtoo small.
And if DLATMR, SLATMS, SLATME or DGEES returns an error code, the absolute value of it is what comes back. π«
like, if one of the helpers throws a fit,INFOdoesn't echo the vibe β it just gives you|code|. noted. π
π«Ά Some Local Variables and Parameters π«Ά
the supporting cast, lowkey carrying the whole test suite:
ZERO,ONEβ real 0 and 1.MAXTYPβ the number of types defined.NMAXβ largest value inNN.NERRSβ the number of tests which have exceededTHRESHCOND,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 j.KMODE(j)β theMODEvalue to be passed to the matrix generator for type j.KMAGN(j)β the order of magnitude (O(1),O(overflow^(1/2) ),O(underflow^(1/2) ))KCONDS(j)β selects whetherCONDSis to be1or1/sqrt(ulp). (0means irrelevant.) πΈ
β¨ Author β¨
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 385 of file ddrves.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (yes bestie, even the docs got auto-generated β we love a machine doing its thing π€β¨)
and that's the whole page, bestie! π this little gem is LAPACK Version 3.12.0, and it lives at /home/abui...IG/ddrves.f(3) β go off, you now know it better than the person who wrote the tests. 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