DLARNV(3)

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

πŸ’… NAME

ok so bestie, this is the manual for /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dlarnv.f β€” yes that is literally the whole name, it's giving "full government name on the birth certificate" energy 😭 but that's what the page says so we're keeping it, periodt.


✨ SYNOPSIS

Functions/Subroutines

  • subroutine DLARNV (idist, iseed, n, x) β€” DLARNV returns a vector of random numbers from a uniform or normal distribution. that's it, that's the vibe 🎲

πŸ¦‹ Function/Subroutine Documentation

subroutine DLARNV (integer idist, integer, dimension( 4 ) iseed, integer n,
    double precision, dimension( * ) x)

DLARNV returns a vector of random numbers from a uniform or normal distribution. no cap, that's literally her whole job πŸ’–

πŸŽ€ Purpose:

!>
!> DLARNV returns a vector of n random real numbers from a uniform or
!> normal distribution.
!>

so you hand her n, she hands you n random real numbers, and the distribution is whatever you asked for. icon behavior honestly πŸ‘‘

🌸 Parameters

  • IDIST
!>          IDIST is INTEGER
!>          Specifies the distribution of the random numbers:
!>          = 1:  uniform (0,1)
!>          = 2:  uniform (-1,1)
!>          = 3:  normal (0,1)
!>

bestie this is the flavor selector πŸ“ β€” IDIST is an INTEGER and it tells her which distribution you want:

  • = 1: β†’ uniform (0,1)
  • = 2: β†’ uniform (-1,1)
  • = 3: β†’ normal (0,1)
  • 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 the rules are strict bestie, no negotiating: every element must be between 0 and 4095, and ISEED(4) must be odd πŸ’€ don't fight her on this. On exit, the seed is updated, so you can chain calls together like the main character you are ✨

  • N
!>          N is INTEGER
!>          The number of random numbers to be generated.
!>

N is an INTEGER, aka how many random numbers you want. that's the whole description, she's very direct 🎯

  • X
!>          X is DOUBLE PRECISION array, dimension (N)
!>          The generated random numbers.
!>

X is a DOUBLE PRECISION array, dimension (N), and it catches the generated random numbers on her way out 🫢

πŸ‘‘ Author

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

the whole friend group co-signed this one, we love a collaborative slay 🌈

⭐ 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.
!>

ok so the lore 🧚: 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. and for the normal girlies, the Box-Muller method is used to transform numbers from a uniform to a normal distribution. math ate, honestly πŸ”₯

Definition at line 96 of file dlarnv.f.


πŸ’œ Author

Generated automatically by Doxygen for LAPACK from the source code. (not a human, just a very diligent little robot πŸŽ€)


okay that's the whole page bestie, go forth and generate random numbers responsibly βœ¨πŸ’…πŸŒΈ

sign-off szn: this little love letter is from LAPACK, Version 3.12.0, and it lives at /home/abui...RC/dlarnv.f(3) β€” mwah, bye πŸ«ΆπŸ’–

πŸ“¦ where this page comes from