/home/abui...N/zlarnd.f(3)

πŸ“¦ version 3.12.0, in opensuse-leap 16.0

πŸ’… NAME πŸ’…

/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/MATGEN/zlarnd.f

okay so that's the whole name, bestie β€” it's a path, not a personality, but we move. This is the zlarnd.f page from the LAPACK library functions manual (section 3). πŸŽ€


✨ SYNOPSIS ✨

πŸ¦‹ Functions/Subroutines πŸ¦‹

  • complex *16 function ZLARND (idist, iseed) β€” literally just ZLARND, that's the whole vibe

πŸ’– Function/Subroutine Documentation πŸ’–

🌸 complex*16 function ZLARND (integer idist, integer, dimension( 4 ) iseed) 🌸

ZLARND. that's it, that's the subroutine. πŸ’€

πŸŽ€ Purpose:

!>
!> ZLARND returns a random complex number from a uniform or normal
!> distribution.
!>

no cap β€” it hands you back a random complex number, and you get to pick whether it comes from a uniform or a normal distribution. iconic behavior honestly. πŸ”₯

⭐ Parameters

IDIST

!>          IDIST is INTEGER
!>          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 disc abs(z) <= 1
!>          = 5:  uniformly distributed on the circle abs(z) = 1
!>

so IDIST is an INTEGER and it's the whole vibe check for your random numbers. the options, fr fr:

  • = 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 disc abs(z) <= 1
  • = 5 β€” uniformly distributed on the circle abs(z) = 1

five flavors, pick your fighter. 🌈

ISEED

!>          ISEED is INTEGER array, dimension (4)
!>          On entry, the seed of the random number generator; the array
!>          elements must be between 0 and 4095, and ISEED(4) must be
!>          odd.
!>          On exit, the seed is updated.
!>

ISEED is an INTEGER array with dimension (4). on entry it's the seed of the random number generator β€” and listen, the array elements must be between 0 and 4095, and ISEED(4) must be odd. like, mandatory mandatory. 🫢 on exit the seed gets updated, so it's giving main character energy and evolving as it goes. πŸ’«

seriously tho, ISEED(4) odd and everything in 0–4095 β€” those are the rules, no skipping them. πŸ™ˆ

πŸ‘‘ Author

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

the whole squad, we love to see it. πŸ’œ

πŸ”₯ Further Details:

!>
!>  This routine calls the auxiliary routine DLARAN to generate a random
!>  real number from a uniform (0,1) distribution. The Box-Muller method
!>  is used to transform numbers from a uniform to a normal distribution.
!>

iykyk β€” this routine calls the auxiliary routine DLARAN to generate a random real number from a uniform (0,1) distribution, and the Box-Muller method is used to transform numbers from a uniform to a normal distribution. math girlies ate that one. 🧚

πŸ’« Definition at line 74 of file zlarnd.f.

πŸ“ Author

Generated automatically by Doxygen for LAPACK from the source code.

(not me being auto-generated by Doxygen 😭 slay I guess)


okay that's the whole page, bestie β€” and the sign-off: this is LAPACK, Version 3.12.0, dated /home/abui...N/zlarnd.f(3). go forth and generate some random complex numbers, you've got this πŸ’…βœ¨πŸŒ·

πŸ“¦ where this page comes from