31#ifndef ROOT_Math_GSLMonteFunctionWrapper
32#define ROOT_Math_GSLMonteFunctionWrapper
34#include "gsl/gsl_monte.h"
35#include "gsl/gsl_multimin.h"
65 fFunc.params =
nullptr;
73 template<
class FuncType>
76 assert (
p !=
nullptr);
85 double operator() (
const double *
x) {
return GSL_MONTE_FN_EVAL(&
fFunc,
const_cast<double *
>(
x) ); }
winID h TVirtualViewer3D TVirtualGLPainter p
wrapper to a multi-dim function withtout derivatives for Monte Carlo multi-dimensional integration al...
gsl_monte_function * GetFunc()
GSLMonteFunctionWrapper()
void SetFunction(const FuncType &f)
Fill gsl function structure from a C++ Function class.
double operator()(const double *x)
evaluate the function and derivatives
void SetDim(unsigned int n)
void SetFuncPointer(GSLMonteFuncPointer f)
double(* GSLMonteFuncPointer)(double *, size_t, void *)
Class for adapting any multi-dimension C++ functor class to C function pointers used by GSL MonteCarl...
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.