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;
typedef void((*Func_t)())
Class for adapting a C++ functor class to C function pointers used by GSL MultiFit Algorithm The temp...
wrapper to a multi-dim function withtout derivatives for multi-dimensional minimization algorithm
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.
gsl_multifit_function_fdf * GetFunc()
GSLMultiFitFunctionWrapper()
gsl_multifit_function_fdf fFunc
Namespace for new Math classes and functions.
double(* GSLMultiFitFPointer)(const gsl_vector *, void *, gsl_vector *)
void(* GSLMultiFitDfPointer)(const gsl_vector *, void *, gsl_matrix *)
void(* GSLMultiFitFdfPointer)(const gsl_vector *, void *, gsl_vector *, gsl_matrix *)
Namespace for new ROOT classes and functions.