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