34 #ifndef ROOT_Math_GSLMonteFunctionAdapter
35 #define ROOT_Math_GSLMonteFunctionAdapter
58 template<
class UserFunc>
61 static double F(
double *
x,
size_t,
void * p) {
63 UserFunc *
function =
reinterpret_cast< UserFunc *
> (p);
64 return (*
function)(
x );
Namespace for new ROOT classes and functions.
static double F(double *x, size_t, void *p)
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...