SRC/dlaruv.f(3)

SRC/dlaruv.f πŸ’…βœ¨

Okay bestie, this is the Library Functions Manual glow-up for SRC/dlaruv.f(3) β€” yes, the dlaruv routine is the main character today. She makes random numbers, she has a 48-bit situation, and she’s lowkey iconic. No cap. πŸŽ€


🌸 NAME 🌸

SRC/dlaruv.f

That’s the whole name section, and honestly? Minimalist queen. πŸ’…


✨ SYNOPSIS ✨

🧚 Functions/Subroutines 🧚

subroutine dlaruv (iseed, n, x)

DLARUV returns a vector of n random real numbers from a uniform distribution. Slay.


πŸ‘‘ Function/Subroutine Documentation πŸ‘‘

subroutine dlaruv (integer, dimension( 4 ) iseed, integer n, double precision, dimension( n ) x)

DLARUV returns a vector of n random real numbers from a uniform distribution. (Yes bestie, she said it again β€” consistency is iconic. πŸ’–)

🎯 Purpose 🎯

Okay so DLARUV returns a vector of n random real numbers from a uniform (0,1) distribution, with the limit n <= 128. She’s an auxiliary routine called by DLARNV and ZLARNV. Iykyk. 🌈

πŸ’… Parameters πŸ’…

ISEED

ISEED is INTEGER array, dimension (4). On entry, it’s 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. It’s the number of random numbers to be generated, and N <= 128. ✨

X

X is DOUBLE PRECISION array, dimension (N). These are the generated random numbers. πŸ’–

πŸ‘‘ Author πŸ‘‘

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

🧠 Further Details 🧠

This routine uses a multiplicative congruential method with modulus 2**48 and multiplier 33952834046453 (see G.S.Fishman, 'Multiplicative congruential random number generators with modulus 2**b: an exhaustive analysis for b = 32 and a partial analysis for b = 48', Math. Comp. 189, pp 331-344, 1990). πŸ”₯

48-bit integers are stored in 4 integer array elements with 12 bits per element. Hence the routine is portable across machines with integers of 32 bits or more. 🫢

Definition at line 94 of file dlaruv.f.

πŸ€– Author πŸ€–

Generated automatically by Doxygen for LAPACK from the source code. πŸ‘‘


Alright bestie, that’s the whole page. Footer vibe check: LAPACK, Version 3.12.0, source/man-page SRC/dlaruv.f(3). The original footer doesn’t list a separate date, so we’re not inventing one β€” facts only on this page, periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from