31 #ifndef ROOT_Math_GSLMultiFitFunctionWrapper 32 #define ROOT_Math_GSLMultiFitFunctionWrapper 34 #include "gsl/gsl_multifit.h" 70 #if GSL_MAJOR_VERSION > 1 78 template<
class FuncVector>
79 void SetFunction(
const FuncVector &
f,
unsigned int nres,
unsigned int npar ) {
87 fFunc.params =
const_cast<void *
>(p);
95 gsl_multifit_function_fdf
fFunc;
Namespace for new ROOT classes and functions.
gsl_multifit_function_fdf fFunc
void(* GSLMultiFitFdfPointer)(const gsl_vector *, void *, gsl_vector *, gsl_matrix *)
void(* GSLMultiFitDfPointer)(const gsl_vector *, void *, gsl_matrix *)
GSLMultiFitFunctionWrapper()
void SetFunction(const FuncVector &f, unsigned int nres, unsigned int npar)
Fill gsl function structure from a C++ function iterator and size and number of residuals.
Class for adapting a C++ functor class to C function pointers used by GSL MultiFit Algorithm The temp...
Namespace for new Math classes and functions.
gsl_multifit_function_fdf * GetFunc()
typedef void((*Func_t)())
wrapper to a multi-dim function withtout derivatives for multi-dimensional minimization algorithm ...
double(* GSLMultiFitFPointer)(const gsl_vector *, void *, gsl_vector *)