SLARNV(3)
okay so bestie, we're in SLARNV(3) from the Library Functions Manual, and this is the whole tea on getting random numbers out of LAPACK. π
β¨
π NAME π
This page is literally the manual for /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slarnv.f β the source file where SLARNV lives. π«Ά
β¨ SYNOPSIS β¨
π¦ Functions/Subroutines π¦
subroutine SLARNV (idist, iseed, n, x)β SLARNV returns a vector of random numbers from a uniform or normal distribution. No cap. π
πΈ Function/Subroutine Documentation πΈ
subroutine SLARNV (integer idist, integer, dimension( 4 ) iseed, integer n,
real, dimension( * ) x)
SLARNV returns a vector of random numbers from a uniform or normal distribution. That's the main character energy of this routine. π
π Purpose π
SLARNV returns a vector of n random real numbers from a uniform or normal distribution. π²
π§ Parameters π§
IDISTβIDIST is INTEGER. Specifies the distribution of the random numbers:= 1: uniform (0,1)= 2: uniform (-1,1)= 3: normal (0,1)
ISEEDβISEED is INTEGER array, dimension (4). On entry, this is the seed of the random number generator; the array elements must be between0and4095, andISEED(4)must be odd. On exit, the seed is updated. πNβN is INTEGER. The number of random numbers to be generated. π’XβX is REAL array, dimension (N). The generated random numbers. β¨
π¨ Seed rules are not optional, bestie: the array elements must be between0and4095, andISEED(4)must be odd. That's the actual contract. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π₯ Further Details π₯
This routine calls the auxiliary routine SLARUV to generate random real numbers from a uniform (0,1) distribution, in batches of up to 128 using vectorisable code. The Box-Muller method is used to transform numbers from a uniform to a normal distribution. π§ β¨
Definition at line 96 of file slarnv.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Bye bestie π β the footer's source/version stamp is LAPACK Version 3.12.0, and it points back to /home/abui...RC/slarnv.f(3). That's the build/date energy for this page. πβ¨
π¦ 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