/home/abui...N/slatm1.f(3)
πΈ NAME πΈ
okay bestie, this is slatm1.f(3) from the Library Functions Manual β the whole page is basically a LAPACK subroutine vibe check π
. The NAME line is a full path, so here it is exactly, no edits:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/MATGEN/slatm1.f
β¨ SYNOPSIS β¨
Functions/Subroutines:
subroutine SLATM1 (mode, cond, irsign, idist, iseed, d, n, info)
SLATM1
π«Ά Function/Subroutine Documentation π«Ά
subroutine SLATM1 (integer mode, real cond, integer irsign, integer idist,
integer, dimension( 4 ) iseed, real, dimension( * ) d, integer n,
integer info)
SLATM1 β yes, that's the icon herself.
π Purpose π
okay so SLATM1 computes the entries of D(1..N) as specified by MODE, COND and IRSIGN. IDIST and ISEED determine the generation of random numbers. SLATM1 is called by SLATMR to generate random test matrices for LAPACK programs. periodt β¨
π¦ Parameters π¦
MODE
MODE is INTEGER.
On entry describes how D is to be computed:
MODE = 0β means do not changeD.MODE = 1β setsD(1)=1andD(2:N)=1.0/COND.MODE = 2β setsD(1:N-1)=1andD(N)=1.0/COND.MODE = 3β setsD(I)=COND**(-(I-1)/(N-1)).MODE = 4β setsD(i)=1 - (i-1)/(N-1)*(1 - 1/COND).MODE = 5β setsDto random numbers in the range( 1/COND , 1 )such that their logarithms are uniformly distributed.MODE = 6β setDto random numbers from same distribution as the rest of the matrix.MODE < 0β has the same meaning asABS(MODE), except that the order of the elements ofDis reversed.
Thus if MODE is positive, D has entries ranging from 1 to 1/COND, if negative, from 1/COND to 1.
MODE is Not modified.
COND
COND is REAL.
On entry, used as described under MODE above. If used, it must be >= 1.
Not modified.
IRSIGN
IRSIGN is INTEGER.
On entry, if MODE neither -6, 0 nor 6, determines sign of entries of D:
0=> leave entries ofDunchanged1=> multiply each entry ofDby1or-1with probability.5
IDIST
IDIST is INTEGER.
On entry, IDIST specifies 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
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 SLATM1 to continue the same random number sequence.
Changed on exit.
D
D is REAL 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 range1to3-7=> ifNnegative
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§Ύ Definition π§Ύ
Definition at line 134 of file slatm1.f.
π Author (the generated one) π
Generated automatically by Doxygen for LAPACK from the source code.
π that's the whole page, bestie! Footer source/version: LAPACK Version 3.12.0; footer date/path field: /home/abui...N/slatm1.f(3). slay, go generate those random test matrices πβ¨
π¦ 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