SLARNV(3)

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

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 between 0 and 4095, and ISEED(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 between 0 and 4095, and ISEED(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