|
ASCOT5
|
Header file for random.c. More...
#include <stdlib.h>Go to the source code of this file.
Macros | |
| #define | random_init(data, seed) |
| #define | random_uniform(data) |
| #define | random_normal(data) |
| #define | random_uniform_simd(data, n, r) |
| #define | random_normal_simd(data, n, r) |
Typedefs | |
| typedef void * | random_data |
Functions | |
| double | random_drand48_normal () |
| Initialize random generator which uses the linear congruential algorithm and 48-bit integer arithmetic. | |
| void | random_drand48_uniform_simd (int n, double *r) |
| Vectorised sampling from uniform distribution. | |
| void | random_drand48_normal_simd (int n, double *r) |
| Vectorised sampling from normal distribution. | |
| #define random_init | ( | data, | |
| seed ) |
| #define random_uniform | ( | data | ) |
| #define random_normal | ( | data | ) |
Sample from Normal distribution
| #define random_uniform_simd | ( | data, | |
| n, | |||
| r ) |
Same as random_uniform but vectorised
| #define random_normal_simd | ( | data, | |
| n, | |||
| r ) |
Same as random_normal but vectorised
| typedef void* random_data |
| double random_drand48_normal | ( | ) |
| void random_drand48_uniform_simd | ( | int | n, |
| double * | r ) |