13 #ifndef ROOT_Math_GSLRngWrapper 14 #define ROOT_Math_GSLRngWrapper 58 fRng =
const_cast<gsl_rng *
>(
r);
75 if (
this == &rhs)
return *
this;
79 iret = gsl_rng_memcpy(
fRng, rhs.
fRng);
80 if (!iret)
return *
this;
121 gsl_rng_print_state(
fRng);
126 inline const gsl_rng *
Rng()
const {
return fRng; }
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
GSLRngWrapper(const gsl_rng *r)
construct from an existing gsl_rng it is managed externally - so will not be deleted at the end ...
const gsl_rng * Rng() const
GSLRngWrapper()
Default constructor.
~GSLRngWrapper()
Destructor (free the rng if not done before)
GSLRngWrapper class to wrap gsl_rng structure.
const gsl_rng_type * fRngType
GSLRngWrapper(GSLRngWrapper &r)
Copy constructor - clone the GSL object and manage it.
GSLRngWrapper(const gsl_rng_type *type)
Constructor with type.
void SetType(const gsl_rng_type *type)
Namespace for new Math classes and functions.
GSLRngWrapper & operator=(const GSLRngWrapper &rhs)
Assignment operator.