GCOP
1.0
|
#include <samplenumericaldiff.h>
Public Types | |
enum | { InputsAtCompileTime = Functor::InputsAtCompileTime, ValuesAtCompileTime = Functor::ValuesAtCompileTime } |
typedef _Functor | Functor |
typedef Functor::Scalar | Scalar |
typedef Functor::InputType | InputType |
typedef Functor::ValueType | ValueType |
typedef Functor::JacobianType | JacobianType |
Public Member Functions | |
SampleNumericalDiff (Scalar _epsfcn=0.) | |
SampleNumericalDiff (const Functor &f, Scalar _epsfcn=0.) | |
template<typename T0 > | |
SampleNumericalDiff (const T0 &a0) | |
template<typename T0 , typename T1 > | |
SampleNumericalDiff (const T0 &a0, const T1 &a1) | |
template<typename T0 , typename T1 , typename T2 > | |
SampleNumericalDiff (const T0 &a0, const T1 &a1, const T2 &a2) | |
int | df (const InputType &_x, JacobianType &jac) |
This class allows you to add a method df() to your functor, which will use numerical differentiation to compute an approximate of the derivative for the functor. Of course, if you have an analytical form
More information on http://en.wikipedia.org/wiki/Numerical_differentiation
typedef _Functor Eigen::SampleNumericalDiff< _Functor >::Functor |
typedef Functor::InputType Eigen::SampleNumericalDiff< _Functor >::InputType |
typedef Functor::JacobianType Eigen::SampleNumericalDiff< _Functor >::JacobianType |
typedef Functor::Scalar Eigen::SampleNumericalDiff< _Functor >::Scalar |
typedef Functor::ValueType Eigen::SampleNumericalDiff< _Functor >::ValueType |
Eigen::SampleNumericalDiff< _Functor >::SampleNumericalDiff | ( | Scalar | _epsfcn = 0. | ) | [inline] |
Eigen::SampleNumericalDiff< _Functor >::SampleNumericalDiff | ( | const Functor & | f, |
Scalar | _epsfcn = 0. |
||
) | [inline] |
Eigen::SampleNumericalDiff< _Functor >::SampleNumericalDiff | ( | const T0 & | a0 | ) | [inline] |
Eigen::SampleNumericalDiff< _Functor >::SampleNumericalDiff | ( | const T0 & | a0, |
const T1 & | a1 | ||
) | [inline] |
Eigen::SampleNumericalDiff< _Functor >::SampleNumericalDiff | ( | const T0 & | a0, |
const T1 & | a1, | ||
const T2 & | a2 | ||
) | [inline] |
int Eigen::SampleNumericalDiff< _Functor >::df | ( | const InputType & | _x, |
JacobianType & | jac | ||
) | [inline] |
return the number of evaluation of functor