31 #ifndef ROOT_Math_GSLMultiFitFunctionWrapper
32 #define ROOT_Math_GSLMultiFitFunctionWrapper
34 #include "gsl/gsl_multifit.h"
74 template<
class FuncVector>
75 void SetFunction(
const FuncVector &
f,
unsigned int nres,
unsigned int npar ) {
83 fFunc.params =
const_cast<void *
>(p);
91 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 *)