Class implements adapter for gsl_multimin_function. More...

#include <GslMultiminFunctionAdapter.hpp>

Inheritance diagram for julian::GslMultiminFunctionAdapter< F >:

Public Member Functions

 GslMultiminFunctionAdapter (const F &func, unsigned int n_)
 Constructor. More...
 

Static Private Member Functions

static double call (const gsl_vector *x, void *params)
 Method called by the GSL algorithm. More...
 

Private Attributes

const F & func_
 F must be a functor. More...
 

Detailed Description

template<typename F>
class julian::GslMultiminFunctionAdapter< F >

Class implements adapter for gsl_multimin_function.

Class implements adapter for gsl_multimin_function. Class wraps callable class F so that it can be statically casted to gsl_functiongsl_function.

Functor F must have overloaded operator: double operator()(std::vector<double>)

Constructor & Destructor Documentation

template<typename F>
julian::GslMultiminFunctionAdapter< F >::GslMultiminFunctionAdapter ( const F &  func,
unsigned int  n_ 
)
inline

Constructor.

Parameters
funcmust be a functor.
n_Dimension of the function

Member Function Documentation

template<typename F>
static double julian::GslMultiminFunctionAdapter< F >::call ( const gsl_vector *  x,
void *  params 
)
inlinestaticprivate

Method called by the GSL algorithm.

Member Data Documentation

template<typename F>
const F& julian::GslMultiminFunctionAdapter< F >::func_
private

F must be a functor.


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