AFEPack
|
#include <Miscellaneous.h>
公有类型 | |
typedef value_type(* | ValuePrototype )(const double *) |
typedef std::vector< value_type >(* | GradientPrototype )(const double *) |
公有成员 | |
FunctionFunction (value_type(*v)(const double *)=NULL, std::vector< value_type >(*g)(const double *)=NULL) | |
FunctionFunction (const FunctionFunction< value_type > &f) | |
virtual | ~FunctionFunction () |
ValuePrototype | valueFunction () const |
ValuePrototype & | valueFunction () |
GradientPrototype | gradientFunction () const |
GradientPrototype & | gradientFunction () |
operator ValuePrototype () const | |
operator ValuePrototype () | |
operator GradientPrototype () const | |
operator GradientPrototype () | |
virtual value_type | value (const double *p) const |
virtual std::vector< value_type > | gradient (const double *p) const |
私有属性 | |
ValuePrototype | vf |
GradientPrototype | gf |
function of function. The function adopt pointers to funtion to evaluate its value and gradient. This make it convenient to use an old C and C++ function in the new formation.
typedef std::vector<value_type>(* FunctionFunction< value_type >::GradientPrototype)(const double *) |
typedef value_type(* FunctionFunction< value_type >::ValuePrototype)(const double *) |
FunctionFunction< value_type >::FunctionFunction | ( | value_type(*)(const double *) | v = NULL , |
std::vector< value_type >(*)(const double *) | g = NULL |
||
) | [inline] |
Constructor
FunctionFunction< value_type >::FunctionFunction | ( | const FunctionFunction< value_type > & | f | ) | [inline] |
virtual FunctionFunction< value_type >::~FunctionFunction | ( | ) | [inline, virtual] |
Destructor
virtual std::vector<value_type> FunctionFunction< value_type >::gradient | ( | const double * | p | ) | const [inline, virtual] |
the gradient of the function.
GradientPrototype FunctionFunction< value_type >::gradientFunction | ( | ) | const [inline] |
the pointer of the gradient function.
GradientPrototype& FunctionFunction< value_type >::gradientFunction | ( | ) | [inline] |
the pointer of the gradient function.
FunctionFunction< value_type >::operator GradientPrototype | ( | ) | const [inline] |
FunctionFunction< value_type >::operator GradientPrototype | ( | ) | [inline] |
FunctionFunction< value_type >::operator ValuePrototype | ( | ) | const [inline] |
FunctionFunction< value_type >::operator ValuePrototype | ( | ) | [inline] |
virtual value_type FunctionFunction< value_type >::value | ( | const double * | p | ) | const [inline, virtual] |
the value of the function.
ValuePrototype FunctionFunction< value_type >::valueFunction | ( | ) | const [inline] |
the pointer of the value function.
ValuePrototype& FunctionFunction< value_type >::valueFunction | ( | ) | [inline] |
the pointer of the value function.
GradientPrototype FunctionFunction< value_type >::gf [private] |
ValuePrototype FunctionFunction< value_type >::vf [private] |
< the pointer to the value function. the pointer to the gradient function.