TESTING/MATGEN/clatme.f(3)
πΈ NAME πΈ
okay bestie, this is the manual page for TESTING/MATGEN/clatme.f(3) from the Library Functions Manual β¨ and it's all about CLATME, no cap π
π¦ SYNOPSIS π¦
Functions/Subroutines:
Functions/Subroutines
subroutine clatme (n, dist, iseed, d, mode, cond, dmax, rsign, upper,
sim, ds, modes, conds, kl, ku, anorm, a, lda, work, info)
CLATME
π Function/Subroutine Documentation π
subroutine clatme (integer n, character dist, integer, dimension( 4 ) iseed,
complex, dimension( * ) d, integer mode, real cond, complex dmax,
character rsign, character upper, character sim, real, dimension( * )
ds, integer modes, real conds, integer kl, integer ku, real anorm,
complex, dimension( lda, * ) a, integer lda, complex, dimension( * )
work, integer info)
CLATME
πΈ Purpose πΈ
CLATME generates random non-symmetric square matrices with specified eigenvalues for testing LAPACK programs π₯
Here's the whole glow-up sequence, in order:
- Set the diagonal to
D, whereDmay be input or computed according toMODE,COND,DMAX, andRSIGNas described below. - If
UPPER='T', the upper triangle ofAis set to random values out of distributionDIST. - If
SIM='T',Ais multiplied on the left by a random matrixX, whose singular values are specified byDS,MODES, andCONDS, and on the right byXinverse. - If
KL < N-1, the lower bandwidth is reduced toKLusing Householder transformations. IfKU < N-1, the upper bandwidth is reduced toKU. - If
ANORMis not negative, the matrix is scaled to have maximum-element-normANORM.
(Note: since the matrix cannot be reduced beyond Hessenberg form, no packing options are available.)
π Parameters π
NβN is INTEGER. The number of columns (or rows) ofA. Not modified.DISTβDIST is CHARACTER*1. On entry,DISTspecifies the type of distribution to be used to generate the random eigen-/singular values, and on the upper triangle (seeUPPER).'U'=>UNIFORM( 0, 1 )('U'for uniform )'S'=>UNIFORM( -1, 1 )('S'for symmetric )'N'=>NORMAL( 0, 1 )('N'for normal )'D'=> uniform on the complex disc|z| < 1. Not modified.
ISEEDβISEED is INTEGER array, dimension ( 4 ). On entryISEEDspecifies the seed of the random number generator. They should lie between0and4095inclusive, andISEED(4)should 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 toCLATMEto continue the same random number sequence. Changed on exit.DβD is COMPLEX array, dimension ( N ). This array is used to specify the eigenvalues ofA. IfMODE=0, thenDis assumed to contain the eigenvalues otherwise they will be computed according toMODE,COND,DMAX, andRSIGNand placed inD. Modified ifMODEis nonzero.MODEβMODE is INTEGER. On entry this describes how the eigenvalues are to be specified:MODE = 0means useDas inputMODE = 1setsD(1)=1andD(2:N)=1.0/CONDMODE = 2setsD(1:N-1)=1andD(N)=1.0/CONDMODE = 3setsD(I)=COND**(-(I-1)/(N-1))MODE = 4setsD(i)=1 - (i-1)/(N-1)*(1 - 1/COND)MODE = 5setsDto random numbers in the range( 1/COND , 1 )such that their logarithms are uniformly distributed.MODE = 6setDto random numbers from same distribution as the rest of the matrix.MODE < 0has the same meaning asABS(MODE), except that the order of the elements ofDis reversed. Thus ifMODEis between1and4,Dhas entries ranging from1to1/COND, if between-1and-4,Dhas entries ranging from1/CONDto1, Not modified.
CONDβCOND is REAL. On entry, this is used as described underMODEabove. If used, it must be>= 1. Not modified.DMAXβDMAX is COMPLEX. IfMODEis neither-6,0nor6, the contents ofD, as computed according toMODEandCOND, will be scaled byDMAX / max(abs(D(i))). Note thatDMAXneed not be positive or real: ifDMAXis negative or complex (or zero),Dwill be scaled by a negative or complex number (or zero). IfRSIGN='F'then the largest (absolute) eigenvalue will be equal toDMAX. Not modified.RSIGNβRSIGN is CHARACTER*1. IfMODEis not0,6, or-6, andRSIGN='T', then the elements ofD, as computed according toMODEandCOND, will be multiplied by a random complex number from the unit circle|z| = 1. IfRSIGN='F', they will not be.RSIGNmay only have the values'T'or'F'. Not modified.UPPERβUPPER is CHARACTER*1. IfUPPER='T', then the elements ofAabove the diagonal will be set to random numbers out ofDIST. IfUPPER='F', they will not.UPPERmay only have the values'T'or'F'. Not modified.SIMβSIM is CHARACTER*1. IfSIM='T', thenAwill be operated on by a , i.e., multiplied on the left by a matrixXand on the right byXinverse.X = U S V, whereUandVare random unitary matrices andSis a (diagonal) matrix of singular values specified byDS,MODES, andCONDS. IfSIM='F', thenAwill not be transformed. Not modified.DSβDS is REAL array, dimension ( N ). This array is used to specify the singular values ofX, in the same way thatDspecifies the eigenvalues ofA. IfMODE=0, theDScontains the singular values, which may not be zero. Modified ifMODEis nonzero.MODESβMODES is INTEGER.CONDSβCONDS is REAL. Similar toMODEandCOND, but for specifying the diagonal ofS.MODES=-6and+6are not allowed (since they would result in randomly ill-conditioned eigenvalues.)KLβKL is INTEGER. This specifies the lower bandwidth of the matrix.KL=1specifies upper Hessenberg form. IfKLis at leastN-1, thenAwill have full lower bandwidth. Not modified.KUβKU is INTEGER. This specifies the upper bandwidth of the matrix.KU=1specifies lower Hessenberg form. IfKUis at leastN-1, thenAwill have full upper bandwidth; ifKUandKLare both at leastN-1, thenAwill be dense. Only one ofKUandKLmay be less thanN-1. Not modified.ANORMβANORM is REAL. IfANORMis not negative, thenAwill be scaled by a non-negative real number to make the maximum-element-norm ofAto beANORM. Not modified.AβA is COMPLEX array, dimension ( LDA, N ). On exitAis the desired test matrix. Modified.LDAβLDA is INTEGER.LDAspecifies the first dimension ofAas declared in the calling program.LDAmust be at leastM. Not modified.WORKβWORK is COMPLEX array, dimension ( 3*N ). Workspace. Modified.INFOβINFO is INTEGER. Error code. On exit,INFOwill be set to one of the following values:
0 => normal return
-1 => N negative
-2 => DIST illegal string
-5 => MODE not in range -6 to 6
-6 => COND less than 1.0, and MODE neither -6, 0 nor 6
-9 => RSIGN is not 'T' or 'F'
-10 => UPPER is not 'T' or 'F'
-11 => SIM is not 'T' or 'F'
-12 => MODES=0 and DS has a zero singular value.
-13 => MODES is not in the range -5 to 5.
-14 => MODES is nonzero and CONDS is less than 1.
-15 => KL is less than 1.
-16 => KU is less than 1, or KL and KU are both less than
N-1.
-19 => LDA is less than M.
1 => Error return from CLATM1 (computing D)
2 => Cannot scale to DMAX (max. eigenvalue is 0)
3 => Error return from SLATM1 (computing DS)
4 => Error return from CLARGE
5 => Zero singular value from SLATM1.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 296 of file clatme.f.
π» Author (generated) π»
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie that's the whole page! footer vibes: LAPACK / Version 3.12.0 / TESTING/MATGEN/clatme.f(3) β byeee π
π¦ 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