/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_CBRNG(NAME, CBRNGNAME) |
#define GSL_CBRNG | ( | NAME, | |
CBRNGNAME | |||
) |
The macro: GSL_CBRNG(NAME, CBRNGNAME) declares the necessary structs and constants that define a gsl_rng_NAME type based on the counter-based RNG CBRNGNAME. For example:
Usage:
It requires that NAME be the name of a CBRNG that follows the naming and stylistic conventions of the Random123 library.
Note that wrapping a counter-based PRNG with a traditional API in this way obscures much of the power of the CBRNG API. Nevertheless, it may be of value to applications that are already coded to work with GSL random number generators, and that wish to use the RNGs in the Random123 library.