Logo ROOT  
Reference Guide
ROOT::Math::GSLMultiMinFunctionAdapter< UserFunc > Struct Template Reference

template<class UserFunc>
struct ROOT::Math::GSLMultiMinFunctionAdapter< UserFunc >

Class for adapting any multi-dimension C++ functor class to C function pointers used by GSL MultiMin algorithms.

The templated C++ function class must implement:

double operator( const double * x) and if the derivatives are required: void Gradient( const double * x, double * g)

This class defines static methods with will be used to fill the gsl_multimin_function and gsl_multimin_function_fdf structs used by GSL. See for examples the GSL online manual

Definition at line 66 of file GSLMultiMinFunctionAdapter.h.

Static Public Member Functions

static void Df (const gsl_vector *x, void *p, gsl_vector *g)
 
static double F (const gsl_vector *x, void *p)
 
static void Fdf (const gsl_vector *x, void *p, double *f, gsl_vector *g)
 

#include </home/sftnight/build/workspace/root-makedoc-v622/rootspi/rdoc/src/v6-22-00-patches/math/mathmore/src/GSLMultiMinFunctionAdapter.h>

Member Function Documentation

◆ Df()

template<class UserFunc >
static void ROOT::Math::GSLMultiMinFunctionAdapter< UserFunc >::Df ( const gsl_vector *  x,
void p,
gsl_vector *  g 
)
inlinestatic

Definition at line 76 of file GSLMultiMinFunctionAdapter.h.

◆ F()

template<class UserFunc >
static double ROOT::Math::GSLMultiMinFunctionAdapter< UserFunc >::F ( const gsl_vector *  x,
void p 
)
inlinestatic

Definition at line 68 of file GSLMultiMinFunctionAdapter.h.

◆ Fdf()

template<class UserFunc >
static void ROOT::Math::GSLMultiMinFunctionAdapter< UserFunc >::Fdf ( const gsl_vector *  x,
void p,
double f,
gsl_vector *  g 
)
inlinestatic

Definition at line 83 of file GSLMultiMinFunctionAdapter.h.


The documentation for this struct was generated from the following file: