/search.css" rel="stylesheet" type="text/css"/> /search.js">
#include <gsl/gsl_rng.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | GSL_MICRORNG(NAME, CBRNGNAME) |
#define GSL_MICRORNG | ( | NAME, | |
CBRNGNAME | |||
) |
The macro: GSL_MICRORNG(NAME, CBRNGNAME) is the GSL analog analog of the C++ r123::MicroURNG template. It declares a gsl_rng type named gsl_rng_NAME which uses the underlying CBRNGNAME and can be invoked a limited number of times between calls to NAME_reset.
When the underlying CBRNG's ctr_t
is an r123arrayNxW, and the gsl_rng_NAME may called up to N*2^32
times between calls to NAME_reset
.
NAME_reset
takes a gsl_rng_NAME type, a counter and a key as arguments. It restarts the micro-rng with a new base counter and key.
Note that you must call NAME_reset before the first use of a gsl_rng. NAME_reset is not called automatically by gsl_rng_alloc().