31 #ifndef ROOT_Math_GSLFunctionWrapper 32 #define ROOT_Math_GSLFunctionWrapper 34 #include "gsl/gsl_math.h" 75 template<
class FuncType>
92 return (
fFunc.function != 0) ? true :
false;
131 void Fdf(
double x,
double & f,
double & df) {
132 return GSL_FN_FDF_EVAL_F_DF(&
fFunc, x, &f, &df);
137 return (
fFunc.f != 0 ) ? true :
false;
Namespace for new ROOT classes and functions.
bool IsValid()
check if function is valid (has been set)
GSLFuncPointer FunctionPtr()
gsl_function_fdf * GetFunc()
class to wrap a gsl_function_fdf (with derivatives)
void SetFunction(const FuncType &f)
fill the GSL C struct from a generic C++ callable object implementing operator()
GSLFunctionDerivWrapper()
void SetFdfPointer(GSLFdfPointer f)
void Fdf(double x, double &f, double &df)
double(* GSLFuncPointer)(double, void *)
Function pointer corresponding to gsl_function signature.
Class for adapting any C++ functor class to C function pointers used by GSL.
void SetFuncPointer(GSLFuncPointer f)
void SetDerivPointer(GSLFuncPointer f)
bool IsValid()
check if function is valid (has been set)
double Derivative(double x)
* x
Deprecated and error prone model selection interface.
void SetFuncPointer(GSLFuncPointer f)
set in the GSL C struct the pointer to the function evaluation
Namespace for new Math classes and functions.
double operator()(double x)
Wrapper class to the gsl_function C structure.
void SetParams(void *p)
set in the GSL C struct the extra-object pointer
void(* GSLFdfPointer)(double, void *, double *, double *)