13 #ifndef ROOT_Math_GSLQRngWrapper 14 #define ROOT_Math_GSLQRngWrapper 16 #include "gsl/gsl_qrng.h" 59 fRng =
const_cast<gsl_qrng *
>(r);
76 if (
this == &rhs)
return *
this;
80 iret = gsl_qrng_memcpy(
fRng, rhs.
fRng);
81 if (!iret)
return *
this;
126 inline const gsl_qrng *
Rng()
const {
return fRng; }
Namespace for new ROOT classes and functions.
void Allocate(unsigned int dimension)
GSLQRngWrapper(GSLQRngWrapper &r)
Copy constructor - clone the GSL object and manage it.
GSLQRngWrapper()
Default constructor.
GSLQRngWrapper(const gsl_qrng_type *type)
Constructor with type.
GSLQRngWrapper & operator=(const GSLQRngWrapper &rhs)
Assignment operator.
void SetType(const gsl_qrng_type *type)
~GSLQRngWrapper()
Destructor (free the rng if not done before)
GSLQRngWrapper(const gsl_qrng *r)
construct from an existing gsl_qrng it is managed externally - so will not be deleted at the end ...
unsigned int Dimension() const
Namespace for new Math classes and functions.
GSLQRngWrapper class to wrap gsl_qrng structure.
const gsl_qrng_type * fRngType
const gsl_qrng * Rng() const