TESTING/MATGEN/dlatm1.f(3)
hey bestie π welcome to the Library Functions Manual page for TESTING/MATGEN/dlatm1.f(3) β manual name folded in near the top, exactly like requested, no robot header-line copy-paste. This one is all about the dlatm1 subroutine, and yes itβs giving LAPACK test-matrix energy β¨
π NAME π
TESTING/MATGEN/dlatm1.f β thatβs the file, and the routine in the spotlight is dlatm1.
β¨ SYNOPSIS β¨
π§Έ Functions/Subroutines π§Έ
subroutine dlatm1 (mode, cond, irsign, idist, iseed, d, n, info)βDLATM1
π Function/Subroutine Documentation π
subroutine dlatm1 (integer mode, double precision cond, integer irsign,
integer idist, integer, dimension( 4 ) iseed, double precision,
dimension( * ) d, integer n, integer info)
DLATM1
π¦ Purpose π¦
okay so DLATM1 computes the entries of D(1..N) as specified by MODE, COND and IRSIGN. IDIST and ISEED determine the generation of random numbers. DLATM1 is called by DLATMR to generate random test matrices for LAPACK programs. periodt π
π Parameters π
MODEβMODEisINTEGER. On entry describes howDis 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 < 0has the same meaning asABS(MODE), except that the order of the elements ofDis reversed.- Thus if
MODEis positive,Dhas entries ranging from1to1/COND, if negative, from1/CONDto1, - Not modified.
CONDβCONDisDOUBLE PRECISION. On entry, used as described underMODEabove. If used, it must be>= 1. Not modified.IRSIGNβIRSIGNisINTEGER. On entry, ifMODEneither-6,0nor6, determines sign of entries ofD0=> leave entries ofDunchanged1=> multiply each entry ofDby1or-1with probability.5
IDISTβIDISTisINTEGER. On entry,IDISTspecifies the type of distribution to be used to generate a random matrix .1=>UNIFORM( 0, 1 )2=>UNIFORM( -1, 1 )3=>NORMAL( 0, 1 )- Not modified.
ISEEDβISEEDisINTEGER array, dimension ( 4 ). On entryISEEDspecifies 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 ofISEEDare changed on exit, and can be used in the next call toDLATM1to continue the same random number sequence. Changed on exit.DβDisDOUBLE PRECISION array, dimension ( N ). Array to be computed according toMODE,CONDandIRSIGN. May be changed on exit ifMODEis nonzero.NβNisINTEGER. Number of entries ofD. Not modified.INFOβINFOisINTEGER0=> normal termination-1=> ifMODEnot in range-6to6-2=> ifMODEneither-6,0nor6, andIRSIGNneither0nor1-3=> ifMODEneither-6,0nor6andCONDless than1-4=> ifMODEequals6or-6andIDISTnot in range1to3-7=> ifNnegative
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 134 of file dlatm1.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie π«Ά β footer sign-off vibes: source/version is LAPACK Version 3.12.0, page tag is TESTING/MATGEN/dlatm1.f(3), and thereβs no date shown on this footer so Iβm not inventing one π
β¨
π¦ 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