slm: OpenCL code base
0.1
|
Lehmer linear-congruential random number generator functions (uint and float2 vector) More...
Go to the source code of this file.
Macros | |
#define | IS_RNG_AVAILABLE 1 |
Flag whether this RNG is included in the kernel source: the jittered streamline integration function compute_step_vec_jittered() is not compiled unless the flag is set. More... | |
Functions | |
static uint | lehmer_rand_uint (uint *rng_state) |
Generate a Lehmer (linear congruential) integer random variate. More... | |
static float2 | lehmer_rand_vec (uint *rng_state) |
Generate a Lehmer RNG float2 vector random variate \([-0.5,0.5)\times 2\). More... | |
Lehmer linear-congruential random number generator functions (uint and float2 vector)
Definition in file rng.cl.
#define IS_RNG_AVAILABLE 1 |
Flag whether this RNG is included in the kernel source: the jittered streamline integration function compute_step_vec_jittered() is not compiled unless the flag is set.