31 #ifndef ROOT_Math_GSLMonteFunctionWrapper 32 #define ROOT_Math_GSLMonteFunctionWrapper 34 #include "gsl/gsl_monte.h" 35 #include "gsl/gsl_multimin.h" 73 template<
class FuncType>
85 double operator() (
const double *
x) {
return GSL_MONTE_FN_EVAL(&
fFunc, const_cast<double *>(x) ); }
Namespace for new ROOT classes and functions.
void SetFuncPointer(GSLMonteFuncPointer f)
void SetFunction(const FuncType &f)
Fill gsl function structure from a C++ Function class.
GSLMonteFunctionWrapper()
gsl_monte_function * GetFunc()
double operator()(const double *x)
void SetDim(unsigned int n)
Namespace for new Math classes and functions.
double(* GSLMonteFuncPointer)(double *, size_t, void *)
Class for adapting any multi-dimension C++ functor class to C function pointers used by GSL MonteCarl...
wrapper to a multi-dim function withtout derivatives for Monte Carlo multi-dimensional integration al...