TESTING/MATGEN/zlatm1.f(3)
π TESTING/MATGEN/zlatm1.f(3) β Library Functions Manual π
β¨ NAME β¨
TESTING/MATGEN/zlatm1.f β yep, thatβs the name, bestie. Short, iconic, and ready to spill the ZLATM1 tea. π
πΈ SYNOPSIS πΈ
π«Ά Functions/Subroutines π«Ά
subroutine zlatm1 (mode, cond, irsign, idist, iseed, d, n, info)
ZLATM1
π¦ Function/Subroutine Documentation π¦
Say hi to the full signature, bestie β sheβs long but she knows what sheβs doing:
subroutine zlatm1 (integer mode, double precision cond, integer irsign,
integer idist, integer, dimension( 4 ) iseed, complex*16, dimension( * )
d, integer n, integer info)
ZLATM1
π Purpose π
Okay so ZLATM1 computes the entries of D(1..N) as specified by MODE, COND and IRSIGN. IDIST and ISEED determine the generation of random numbers. ZLATM1 is called by ZLATMR to generate random test matrices for LAPACK programs. Thatβs the whole purpose, and honestly it ate. π
β¨
π Parameters π
π₯ MODE π₯
MODE is INTEGER. On entry it describes how D is to be computed:
MODE = 0means do not changeD.MODE = 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 < 0 has the same meaning as ABS(MODE), except that the order of the elements of D is reversed. Thus if MODE is positive, D has entries ranging from 1 to 1/COND; if negative, from 1/COND to 1. Not modified.
πΈ COND πΈ
COND is DOUBLE PRECISION. On entry, used as described under MODE above. If used, it must be >= 1. Not modified.
π IRSIGN π
IRSIGN is INTEGER. On entry, if MODE is neither -6, 0 nor 6, it determines the sign of entries of D:
0=> leave entries ofDunchanged1=> multiply each entry ofDby a random complex number uniformly distributed with absolute value1
π¦ IDIST π¦
IDIST is INTEGER. On entry, IDIST specifies the type of distribution to be used to generate a random matrix.
1=> real and imaginary parts eachUNIFORM( 0, 1 )2=> real and imaginary parts eachUNIFORM( -1, 1 )3=> real and imaginary parts eachNORMAL( 0, 1 )4=> complex number uniform inDISK( 0, 1 )
Not modified.
π ISEED π
ISEED is INTEGER array, dimension ( 4 ). On entry ISEED specifies the seed of the random number generator. The random number generator uses a linear congruential sequence limited to small integers, and so should produce machine independent random numbers. The values of ISEED are changed on exit, and can be used in the next call to ZLATM1 to continue the same random number sequence. Changed on exit.
π§ D π§
D is COMPLEX*16 array, dimension ( N ). Array to be computed according to MODE, COND and IRSIGN. May be changed on exit if MODE is nonzero.
π N π
N is INTEGER. Number of entries of D. Not modified.
π INFO π
INFO is INTEGER:
0=> normal termination-1=> ifMODEnot in range-6to6-2=> ifMODEneither-6,0nor6, andIRSIGNneither0nor1-3=> ifMODEneither-6,0nor6andCONDless than1-4=> ifMODEequals6or-6andIDISTnot in range1to4-7=> ifNnegative
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Definition at line 136 of file zlatm1.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Kisses from LAPACK, Version 3.12.0, and TESTING/MATGEN/zlatm1.f(3) πβ¨ Thatβs the footer vibe, bestie β slay.
π¦ 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