Documentation
|
|
The C interface for Random Number Generation. More...
| afError | af_rand (unsigned *d_Y, unsigned numel) |
| Generate 32-bit random integers (every bit is random). Uses af_rand_setseed. More... | |
| afError | af_rand_setseed (unsigned long long seed) |
| Set the seed for uniform random variable. More... | |
Uniform Distribution | |||||||
Sample from a uniform pseudorandom variable
| |||||||
| afError | af_randu_S (float *d_Y, unsigned numel) | ||||||
| Single-precision uniform random variable. More... | |||||||
| afError | af_randu_D (double *d_Y, unsigned numel) | ||||||
| Double-precision uniform random variable. More... | |||||||
| afError | af_randu_C (cfloat *d_Y, unsigned numel) | ||||||
| Complex single-precision uniform random variable. More... | |||||||
| afError | af_randu_Z (cdouble *d_Y, unsigned numel) | ||||||
| Complex double-precision uniform random variable. More... | |||||||
| afError | af_randu_setseed (unsigned long long seed) | ||||||
| Set the seed for uniform random variable. More... | |||||||
Normal Distribution | |||||||
Sample from a normal pseudorandom variable
| |||||||
| afError | af_randn_S (float *d_Y, unsigned numel) | ||||||
| Single-precision normal random variable. More... | |||||||
| afError | af_randn_D (double *d_Y, unsigned numel) | ||||||
| Double-precision normal random variable. More... | |||||||
| afError | af_randn_C (cfloat *d_Y, unsigned numel) | ||||||
| Complex single-precision normal random variable. More... | |||||||
| afError | af_randn_Z (cdouble *d_Y, unsigned numel) | ||||||
| Complex double-precision normal random variable. More... | |||||||
| afError | af_randn_setseed (unsigned long long seed) | ||||||
| Set the seed for normal random variable. More... | |||||||
The C interface for Random Number Generation.
| afError af_rand | ( | unsigned * | d_Y, |
| unsigned | numel | ||
| ) |
Generate 32-bit random integers (every bit is random). Uses af_rand_setseed.
| afError af_rand_setseed | ( | unsigned long long | seed | ) |
Set the seed for uniform random variable.
| afError af_randu_S | ( | float * | d_Y, |
| unsigned | numel | ||
| ) |
Single-precision uniform random variable.
| afError af_randu_D | ( | double * | d_Y, |
| unsigned | numel | ||
| ) |
Double-precision uniform random variable.
Complex single-precision uniform random variable.
Complex double-precision uniform random variable.
| afError af_randu_setseed | ( | unsigned long long | seed | ) |
Set the seed for uniform random variable.
| afError af_randn_S | ( | float * | d_Y, |
| unsigned | numel | ||
| ) |
Single-precision normal random variable.
| afError af_randn_D | ( | double * | d_Y, |
| unsigned | numel | ||
| ) |
Double-precision normal random variable.
Complex single-precision normal random variable.
Complex double-precision normal random variable.
| afError af_randn_setseed | ( | unsigned long long | seed | ) |
Set the seed for normal random variable.