TESTING/MATGEN/zlarnd.f(3)

πŸ“¦
version 3.12.1 Β· 3 versions
, in arch rolling

TESTING/MATGEN/zlarnd.f(3) πŸ’…

okay bestie, welcome to the Library Functions Manual page for TESTING/MATGEN/zlarnd.f β€” yes, the title is right there, and we are gonna get through it together. This one is short and iconic: it’s all about zlarnd, a function that pulls random complex numbers. no cap. πŸŽ€

✨ NAME ✨

The name of this page is TESTING/MATGEN/zlarnd.f. slay. πŸ¦‹

✨ SYNOPSIS ✨

Functions/Subroutines

  • complex *16 function zlarnd (idist, iseed) β€” the one and only, bestie; it’s labeled ZLARND in the docs. πŸ’–

πŸ“š Function/Subroutine Documentation

🌈 complex*16 function zlarnd (integer idist, integer, dimension( 4 ) iseed)

ZLARND

πŸ’– Purpose:

ZLARND returns a random complex number from a uniform or normal distribution. That’s it, that’s the purpose, and it ate. 😭✨

πŸŽ€ Parameters

  • IDIST β€” IDIST is INTEGER. It specifies the distribution of the random numbers, and the options are:
    • = 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 β€” 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. periodt. πŸ”₯

🌸 Author

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

🧚 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 πŸ’œ

Definition at line 74 of file zlarnd.f.

πŸ‘‘ Author

Generated automatically by Doxygen for LAPACK from the source code.


okay bestie, that’s the whole TESTING/MATGEN/zlarnd.f(3) page πŸ’– source/version check: LAPACK, Version 3.12.0; footer file: TESTING/MATGEN/zlarnd.f(3); date: not listed in the original footer. go forth and randomize responsibly 🫢✨

πŸ“¦ where this page comes from