15 #ifndef ROOT_Math_GSLRngROOTWrapper 16 #define ROOT_Math_GSLRngROOTWrapper 18 #include "gsl/gsl_rng.h" 25 template<
class Engine>
41 static double Rndm(
void * p) {
47 static void Seed(
void * p,
unsigned long seed) {
54 wr->fEngine =
new Engine();
58 if (seed == 0)
return;
61 static void Free(
void *p) {
63 if (wr->fEngine)
delete wr->fEngine;
68 static unsigned long Max() {
return Engine::MaxInt(); }
69 static unsigned long Min() {
return Engine::MinInt(); }
static unsigned long IntRndm(void *p)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
static void Seed(void *p, unsigned long seed)
static std::string Name()
static void Free(void *p)
static const gsl_rng_type mixmax_type
static double Rndm(void *p)
static unsigned long Max()
Namespace for new Math classes and functions.
static unsigned long Min()
ROOT::Math::GSLRngROOTWrapper< ROOT::Math::MixMaxEngine< 240, 0 > > GSLMixMaxWrapper
const gsl_rng_type * gsl_rng_mixmax