31 #ifndef ROOT_Math_GSLMultiMinFunctionWrapper 32 #define ROOT_Math_GSLMultiMinFunctionWrapper 34 #include "gsl/gsl_multimin.h" 74 template<
class FuncType>
86 return (
fFunc.f != 0) ?
true :
false;
125 template<
class FuncType>
140 double operator() (
const double *
x) {
142 return GSL_MULTIMIN_FN_EVAL(&
fFunc, vx);
148 return (
fFunc.f != 0) ?
true :
false;
void SetFunction(const FuncType &f)
Fill gsl function structure from a C++ Function class.
void SetFuncPointer(GSLMultiMinFuncPointer f)
void SetFunction(const FuncType &f)
Fill gsl function structure from a C++ Function class.
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
wrapper to a multi-dim function withtout derivatives for multi-dimensional minimization algorithm ...
void SetFuncPointer(GSLMultiMinFuncPointer f)
void(* GSLMultiMinDfPointer)(const gsl_vector *, void *, gsl_vector *)
void SetDim(unsigned int n)
void(* GSLMultiMinFdfPointer)(const gsl_vector *, void *, double *, gsl_vector *)
void SetDim(unsigned int n)
void SetFdfPointer(GSLMultiMinFdfPointer f)
GSLMultiMinDerivFunctionWrapper()
gsl_multimin_function fFunc
gsl_multimin_function_fdf * GetFunc()
GSLMultiMinFunctionWrapper()
gsl_multimin_function_fdf fFunc
gsl_multimin_function * GetFunc()
Namespace for new Math classes and functions.
void SetDerivPointer(GSLMultiMinDfPointer f)
typedef void((*Func_t)())
bool IsValid()
check if function is valid (has been set)
Wrapper for a multi-dimensional function with derivatives used in GSL multidim minimization algorithm...
Class for adapting any multi-dimension C++ functor class to C function pointers used by GSL MultiMin ...
double(* GSLMultiMinFuncPointer)(const gsl_vector *, void *)