Exception thrown when a Jacobian check fails. More...
#include <roboptim/core/decorator/finite-difference-gradient.hh>
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericDifferentiableFunction< T >) | |
BadJacobian (const_argument_ref x, const_jacobian_ref analyticalJacobian, const_jacobian_ref finiteDifferenceJacobian, const value_type &threshold) | |
Default constructor. More... | |
virtual | ~BadJacobian () throw () |
virtual std::ostream & | print (std::ostream &o) const |
Display the exception on the specified output stream. More... | |
template<> | |
BadJacobian (const_argument_ref x, const_jacobian_ref analyticalJacobian, const_jacobian_ref finiteDifferenceJacobian, const value_type &threshold) | |
Public Attributes | |
argument_t | x_ |
Jacobian has been computed for this point. More... | |
jacobian_t | analyticalJacobian_ |
Analytical Jacobian. More... | |
jacobian_t | finiteDifferenceJacobian_ |
Jacobian computed through finite differences. More... | |
value_type | maxDelta_ |
Maximum error. More... | |
size_type | maxDeltaRow_ |
Components containing the maximum error. More... | |
size_type | maxDeltaCol_ |
value_type | threshold_ |
Allowed threshold. More... | |
Exception thrown when a Jacobian check fails.
roboptim::BadJacobian< T >::BadJacobian | ( | const_argument_ref | x, |
const_jacobian_ref | analyticalJacobian, | ||
const_jacobian_ref | finiteDifferenceJacobian, | ||
const value_type & | threshold | ||
) |
Default constructor.
References roboptim::BadJacobian< T >::maxDelta_, roboptim::BadJacobian< T >::maxDeltaCol_, and roboptim::BadJacobian< T >::maxDeltaRow_.
|
virtual |
|
inline |
|
virtual |
Display the exception on the specified output stream.
o | output stream used for display |
References roboptim::decindent(), roboptim::iendl(), roboptim::incindent(), roboptim::toDense(), and x_.
roboptim::BadJacobian< T >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericDifferentiableFunction< T > | ) |
jacobian_t roboptim::BadJacobian< T >::analyticalJacobian_ |
Analytical Jacobian.
jacobian_t roboptim::BadJacobian< T >::finiteDifferenceJacobian_ |
Jacobian computed through finite differences.
value_type roboptim::BadJacobian< T >::maxDelta_ |
Maximum error.
Referenced by roboptim::BadJacobian< T >::BadJacobian().
size_type roboptim::BadJacobian< T >::maxDeltaCol_ |
Referenced by roboptim::BadJacobian< T >::BadJacobian().
size_type roboptim::BadJacobian< T >::maxDeltaRow_ |
Components containing the maximum error.
Referenced by roboptim::BadJacobian< T >::BadJacobian().
value_type roboptim::BadJacobian< T >::threshold_ |
Allowed threshold.
argument_t roboptim::BadJacobian< T >::x_ |
Jacobian has been computed for this point.