larnv(3)

πŸ’… larnv(3) β€” random vector, Library Functions Manual πŸ’…

okay bestie, welcome to the larnv(3) page β€” it's literally the random-vector page and it comes in four fabulous Fortran flavors. no cap. πŸŽ€


🌟 NAME 🌟

larnv β€” larnv: random vector.

That's it, that's the name, and it ate. πŸ’–


🌸 SYNOPSIS 🌸

πŸŽ€ Functions πŸŽ€

  • clarnv β€” CLARNV returns a vector of random numbers from a uniform or normal distribution.
  • dlarnv β€” DLARNV returns a vector of random numbers from a uniform or normal distribution.
  • slarnv β€” SLARNV returns a vector of random numbers from a uniform or normal distribution.
  • zlarnv β€” ZLARNV returns a vector of random numbers from a uniform or normal distribution.
subroutine clarnv (idist, iseed, n, x)
subroutine dlarnv (idist, iseed, n, x)
subroutine slarnv (idist, iseed, n, x)
subroutine zlarnv (idist, iseed, n, x)

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

okay so the full breakdown is right below in Function Documentation, bestie β€” no thoughts, just routines, seeds, and random-number glam. ✨


✨ FUNCTION DOCUMENTATION ✨

πŸ’– clarnv πŸ’–

   subroutine clarnv (integer idist, integer, dimension( 4 ) iseed, integer n,
       complex, dimension( * ) x)

Purpose: CLARNV returns a vector of n random complex numbers from a uniform or normal distribution. iconic behavior. πŸ¦‹

Parameters:

  • IDIST β€” 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
  • ISEED β€” 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.
  • N β€” INTEGER. The number of random numbers to be generated.
  • X β€” COMPLEX array, dimension (N). The generated random numbers.
bestie, please clock the seed rules: elements between 0 and 4095, and ISEED(4) must be odd. the random-number gods said what they said. πŸ’…

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 98 of file clarnv.f.


πŸ’œ dlarnv πŸ’œ

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

Purpose: DLARNV returns a vector of n random real numbers from a uniform or normal distribution. slay. ✨

Parameters:

  • IDIST β€” INTEGER. Specifies the distribution of the random numbers:
    • = 1: uniform (0,1)
    • = 2: uniform (-1,1)
    • = 3: normal (0,1)
  • ISEED β€” 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.
  • N β€” INTEGER. The number of random numbers to be generated.
  • X β€” DOUBLE PRECISION 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.

Definition at line 96 of file dlarnv.f.


🌈 slarnv 🌈

   subroutine slarnv (integer idist, integer, dimension( 4 ) iseed, integer n,
       real, dimension( * ) x)

Purpose: SLARNV returns a vector of n random real numbers from a uniform or normal distribution. periodt. 🫢

Parameters:

  • IDIST β€” INTEGER. Specifies the distribution of the random numbers:
    • = 1: uniform (0,1)
    • = 2: uniform (-1,1)
    • = 3: normal (0,1)
  • ISEED β€” 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.
  • N β€” INTEGER. The number of random numbers to be generated.
  • X β€” REAL 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 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.


πŸ¦‹ zlarnv πŸ¦‹

   subroutine zlarnv (integer idist, integer, dimension( 4 ) iseed, integer n,
       complex*16, dimension( * ) x)

Purpose: ZLARNV returns a vector of n random complex numbers from a uniform or normal distribution. main character energy fr fr. πŸ‘‘

Parameters:

  • IDIST β€” 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
  • ISEED β€” 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.
  • N β€” INTEGER. The number of random numbers to be generated.
  • X β€” 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.

ngl, the zlarnv further-details line says DLARUV, and we are keeping it exactly as written. iykyk. πŸ’€

Definition at line 98 of file zlarnv.f.


🫢 AUTHOR 🫢

Generated automatically by Doxygen for LAPACK from the source code.


πŸ’– okay that's the whole larnv(3) page, bestie β€” LAPACK Version 3.12.0, source says LAPACK, and the vibes are immaculate. bye! πŸ’–

πŸ“¦ where this page comes from