Interface for the finite difference gradient policies. More...
#include <roboptim/core/decorator/finite-difference-gradient.hh>
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericDifferentiableFunction< T >) | |
Policy (const GenericFunction< T > &adaptee) | |
virtual | ~Policy () |
Virtual destructor. | |
virtual void | computeGradient (value_type epsilon, gradient_ref gradient, const_argument_ref argument, size_type idFunction, argument_ref xEps) const =0 |
virtual void | computeColumn (value_type epsilon, gradient_ref column, const_argument_ref argument, size_type colIdx, argument_ref xEps) const =0 |
virtual void | computeJacobian (value_type epsilon, jacobian_ref jacobian, const_argument_ref argument, argument_ref xEps) const |
template<> | |
void | computeJacobian (value_type epsilon, jacobian_ref jacobian, const_argument_ref argument, argument_ref xEps) const |
Protected Attributes | |
const GenericFunction< T > & | adaptee_ |
Wrapped function. | |
vector_t | column_ |
Vector storing temporary Jacobian column. | |
gradient_t | gradient_ |
Vector storing temporary Jacobian row. |
Interface for the finite difference gradient policies.
roboptim::finiteDifferenceGradientPolicies::Policy< T >::Policy | ( | const GenericFunction< T > & | adaptee | ) | [inline, explicit] |
virtual roboptim::finiteDifferenceGradientPolicies::Policy< T >::~Policy | ( | ) | [inline, virtual] |
Virtual destructor.
virtual void roboptim::finiteDifferenceGradientPolicies::Policy< T >::computeColumn | ( | value_type | epsilon, |
gradient_ref | column, | ||
const_argument_ref | argument, | ||
size_type | colIdx, | ||
argument_ref | xEps | ||
) | const [pure virtual] |
virtual void roboptim::finiteDifferenceGradientPolicies::Policy< T >::computeGradient | ( | value_type | epsilon, |
gradient_ref | gradient, | ||
const_argument_ref | argument, | ||
size_type | idFunction, | ||
argument_ref | xEps | ||
) | const [pure virtual] |
void roboptim::finiteDifferenceGradientPolicies::Policy< T >::computeJacobian | ( | value_type | epsilon, |
jacobian_ref | jacobian, | ||
const_argument_ref | argument, | ||
argument_ref | xEps | ||
) | const [virtual] |
void roboptim::finiteDifferenceGradientPolicies::Policy< EigenMatrixSparse >::computeJacobian | ( | value_type | epsilon, |
jacobian_ref | jacobian, | ||
const_argument_ref | argument, | ||
argument_ref | xEps | ||
) | const [inline] |
ROBOPTIM_DO_NOT_CHECK_ALLOCATION
ROBOPTIM_DO_NOT_CHECK_ALLOCATION
Reimplemented in roboptim::finiteDifferenceGradientPolicies::FivePointsRule< T >, roboptim::finiteDifferenceGradientPolicies::FivePointsRule< T >, and roboptim::finiteDifferenceGradientPolicies::Simple< T >.
References roboptim::GenericFunction< T >::inputSize(), roboptim::is_malloc_allowed(), and roboptim::set_is_malloc_allowed().
roboptim::finiteDifferenceGradientPolicies::Policy< T >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericDifferentiableFunction< T > | ) |
const GenericFunction<T>& roboptim::finiteDifferenceGradientPolicies::Policy< T >::adaptee_ [protected] |
Wrapped function.
vector_t roboptim::finiteDifferenceGradientPolicies::Policy< T >::column_ [mutable, protected] |
Vector storing temporary Jacobian column.
gradient_t roboptim::finiteDifferenceGradientPolicies::Policy< T >::gradient_ [mutable, protected] |
Vector storing temporary Jacobian row.