Fast finite difference gradient computation. More...
#include <roboptim/core/finite-difference-gradient.hh>
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericDifferentiableFunction< T >) | |
void | computeGradient (const GenericFunction< T > &adaptee, value_type epsilon, gradient_t &gradient, const argument_t &argument, size_type idFunction, argument_t &xEps) const throw () |
template<> | |
void | computeGradient (const GenericFunction< EigenMatrixSparse > &adaptee, value_type epsilon, gradient_t &gradient, const argument_t &argument, size_type idFunction, argument_t &xEps) const throw() |
Fast finite difference gradient computation.
Finite difference is computed using forward difference.
void roboptim::finiteDifferenceGradientPolicies::Simple< T >::computeGradient | ( | const GenericFunction< T > & | adaptee, |
value_type | epsilon, | ||
gradient_t & | gradient, | ||
const argument_t & | argument, | ||
size_type | idFunction, | ||
argument_t & | xEps | ||
) | const throw () |
void roboptim::finiteDifferenceGradientPolicies::Simple< EigenMatrixSparse >::computeGradient | ( | const GenericFunction< EigenMatrixSparse > & | adaptee, |
value_type | epsilon, | ||
gradient_t & | gradient, | ||
const argument_t & | argument, | ||
size_type | idFunction, | ||
argument_t & | xEps | ||
) | const throw() [inline] |
roboptim::finiteDifferenceGradientPolicies::Simple< T >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericDifferentiableFunction< T > | ) |