ZLARNV(3)
π ZLARNV(3) β Library Functions Manual π
okay bestie, this is the ZLARNV(3) page from the Library Functions Manual, and the raw header keeps pointing at /home/abui...RC/zlarnv.f(3) (twice, because it's dramatic like that). This routine is giving random complex numbers, and we're obsessed. Let's get into the lore β¨
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/zlarnv.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine ZLARNV (idist, iseed, n, x)
ZLARNV returns a vector of random numbers from a uniform or normal distribution.
π Function/Subroutine Documentation π
subroutine ZLARNV (integer idist, integer, dimension( 4 ) iseed, integer n,
complex*16, dimension( * ) x)
ZLARNV returns a vector of random numbers from a uniform or normal distribution.
π¦ Purpose π¦
ZLARNV returns a vector of n random complex numbers from a uniform or normal distribution. (The source wraps this in those little Doxygen !> comment markers, iykyk.)
πΈ Parameters πΈ
IDISTβIDIST is INTEGER. It specifies the distribution of the random numbers:= 1: real and imaginary parts each uniform(0,1)= 2: real and imaginary parts each uniform(-1,1)= 3: real and imaginary parts each normal(0,1)= 4: uniformly distributed on the discabs(z) < 1= 5: uniformly distributed on the circleabs(z) = 1
ISEEDβISEED is INTEGER array, dimension (4). On entry, it's the seed of the random number generator; the array elements must be between0and4095, andISEED(4)must be odd. On exit, the seed is updated. (Yes, odd. It's a whole thing π )NβN is INTEGER. The number of random numbers to be generated.XβX is COMPLEX*16 array, dimension (N). The generated random numbers.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π₯ Further Details π₯
This routine calls the auxiliary routine DLARUV 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. No cap, that's the whole tea β
Definition at line 98 of file zlarnv.f.
π§ Author π§
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, that's the whole page π«Ά. The footer facts are LAPACK Version 3.12.0 and /home/abui...RC/zlarnv.f(3) β no separate date line is listed, so that's the cute little sign-off, mwah πβ¨
π¦ 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