diff options
Diffstat (limited to 'TESTING/MATGEN/slarnd.f')
-rw-r--r-- | TESTING/MATGEN/slarnd.f | 100 |
1 files changed, 75 insertions, 25 deletions
diff --git a/TESTING/MATGEN/slarnd.f b/TESTING/MATGEN/slarnd.f index 9386d6d6..3868af38 100644 --- a/TESTING/MATGEN/slarnd.f +++ b/TESTING/MATGEN/slarnd.f @@ -1,43 +1,93 @@ - REAL FUNCTION SLARND( IDIST, ISEED ) +*> \brief \b SLARND * -* -- LAPACK auxiliary routine (version 3.1) -- -* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. -* November 2006 +* =========== DOCUMENTATION =========== * -* .. Scalar Arguments .. - INTEGER IDIST -* .. -* .. Array Arguments .. - INTEGER ISEED( 4 ) -* .. +* Online html documentation available at +* http://www.netlib.org/lapack/explore-html/ +* +* Definition +* ========== * +* REAL FUNCTION SLARND( IDIST, ISEED ) +* +* .. Scalar Arguments .. +* INTEGER IDIST +* .. +* .. Array Arguments .. +* INTEGER ISEED( 4 ) +* .. +* * Purpose * ======= * -* SLARND returns a random real number from a uniform or normal -* distribution. +*>\details \b Purpose: +*>\verbatim +*> +*> SLARND returns a random real number from a uniform or normal +*> distribution. +*> +*>\endverbatim * * Arguments * ========= * -* IDIST (input) INTEGER -* Specifies the distribution of the random numbers: -* = 1: uniform (0,1) -* = 2: uniform (-1,1) -* = 3: normal (0,1) +*> \param[in] IDIST +*> \verbatim +*> IDIST is INTEGER +*> Specifies the distribution of the random numbers: +*> = 1: uniform (0,1) +*> = 2: uniform (-1,1) +*> = 3: normal (0,1) +*> \endverbatim +*> +*> \param[in,out] ISEED +*> \verbatim +*> 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. +*> \endverbatim +*> +* +* Authors +* ======= +* +*> \author Univ. of Tennessee +*> \author Univ. of California Berkeley +*> \author Univ. of Colorado Denver +*> \author NAG Ltd. +* +*> \date November 2011 +* +*> \ingroup real_matgen * -* ISEED (input/output) 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. * * Further Details * =============== +*>\details \b Further \b Details +*> \verbatim +*> +*> This routine calls the auxiliary routine SLARAN 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. +*> +*> \endverbatim +*> +* ===================================================================== + REAL FUNCTION SLARND( IDIST, ISEED ) * -* This routine calls the auxiliary routine SLARAN 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. +* -- LAPACK auxiliary routine (version 3.1) -- +* -- LAPACK is a software package provided by Univ. of Tennessee, -- +* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- +* November 2011 +* +* .. Scalar Arguments .. + INTEGER IDIST +* .. +* .. Array Arguments .. + INTEGER ISEED( 4 ) +* .. * * ===================================================================== * |