vSMC
vSMC: Scalable Monte Carlo
Normal distribution

Types and functions

normal01_<N>x<W>_<F>;
void normal01_<N>x<W>_<F>_init (normal01_<N>x<W>_<F> *, cburng<N>x<W>_rng_t *, <FT> shape);
<FT> normal01_<N>x<W>_<F>_init (normal01_<N>x<W>_<F> *, cburng<N>x<W>_rng_t *);

Macros

NORMAL01_<N>x<W>
NORMAL01_<N>x<W>_INIT
NORMAL01_<N>x<W>_RAND

Examples

#define VSMC_HAS_OPENCL_DOUBLE 1
double shape = 2;
normal01_4x32_53_init(&rnorm_53, &rng, shape);
double r_53 = normal01_4x32_53_rand(&rnorm_53, &rng);
NORMAL01_4x32_INIT(&rnorm, &rng, shape);
double r = NORMAL01_4x32_RAND(&rnorm, &rng);