Public Types | |
enum | { InputsAtCompileTime , ValuesAtCompileTime } |
typedef Functor_ | Functor |
typedef Functor::InputType | InputType |
typedef Functor::JacobianType | JacobianType |
typedef Functor::Scalar | Scalar |
typedef Functor::ValueType | ValueType |
Public Member Functions | |
int | df (const InputType &_x, JacobianType &jac) const |
NumericalDiff (const Functor &f, Scalar _epsfcn=0.) | |
template<typename T0 > | |
NumericalDiff (const T0 &a0) | |
template<typename T0 , typename T1 > | |
NumericalDiff (const T0 &a0, const T1 &a1) | |
template<typename T0 , typename T1 , typename T2 > | |
NumericalDiff (const T0 &a0, const T1 &a1, const T2 &a2) | |
NumericalDiff (Scalar _epsfcn=0.) | |
Private Member Functions | |
NumericalDiff & | operator= (const NumericalDiff &) |
Private Attributes | |
Scalar | epsfcn |
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 for the derivative, you should rather implement df() by yourself.
More information on http://en.wikipedia.org/wiki/Numerical_differentiation
Currently only "Forward" and "Central" scheme are implemented.
Definition at line 38 of file NumericalDiff.h.
typedef Functor_ Eigen::NumericalDiff< Functor_, mode >::Functor |
Definition at line 41 of file NumericalDiff.h.
typedef Functor::InputType Eigen::NumericalDiff< Functor_, mode >::InputType |
Definition at line 43 of file NumericalDiff.h.
typedef Functor::JacobianType Eigen::NumericalDiff< Functor_, mode >::JacobianType |
Definition at line 45 of file NumericalDiff.h.
typedef Functor::Scalar Eigen::NumericalDiff< Functor_, mode >::Scalar |
Definition at line 42 of file NumericalDiff.h.
typedef Functor::ValueType Eigen::NumericalDiff< Functor_, mode >::ValueType |
Definition at line 44 of file NumericalDiff.h.
anonymous enum |
|
inline |
Definition at line 47 of file NumericalDiff.h.
|
inline |
Definition at line 48 of file NumericalDiff.h.
|
inline |
Definition at line 52 of file NumericalDiff.h.
|
inline |
Definition at line 54 of file NumericalDiff.h.
|
inline |
Definition at line 56 of file NumericalDiff.h.
|
inline |
return the number of evaluation of functor
Definition at line 66 of file NumericalDiff.h.
|
private |
|
private |
Definition at line 123 of file NumericalDiff.h.