All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::BadJacobian< T > Class Template Reference

Exception thrown when a Jacobian check fails. More...

#include <roboptim/core/decorator/finite-difference-gradient.hh>

Inheritance diagram for roboptim::BadJacobian< T >:

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...
 

Detailed Description

template<typename T>
class roboptim::BadJacobian< T >

Exception thrown when a Jacobian check fails.

Constructor & Destructor Documentation

template<typename T >
roboptim::BadJacobian< T >::BadJacobian ( const_argument_ref  x,
const_jacobian_ref  analyticalJacobian,
const_jacobian_ref  finiteDifferenceJacobian,
const value_type &  threshold 
)
template<typename T >
roboptim::BadJacobian< T >::~BadJacobian ( ) throw ()
virtual
template<>
roboptim::BadJacobian< EigenMatrixSparse >::BadJacobian ( const_argument_ref  x,
const_jacobian_ref  analyticalJacobian,
const_jacobian_ref  finiteDifferenceJacobian,
const value_type &  threshold 
)
inline

Member Function Documentation

template<typename T >
std::ostream & roboptim::BadJacobian< T >::print ( std::ostream &  o) const
virtual

Display the exception on the specified output stream.

Parameters
ooutput stream used for display
Returns
output stream

References roboptim::decindent(), roboptim::iendl(), roboptim::incindent(), roboptim::toDense(), and x_.

template<typename T>
roboptim::BadJacobian< T >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ ( GenericDifferentiableFunction< T >  )

Member Data Documentation

template<typename T>
jacobian_t roboptim::BadJacobian< T >::analyticalJacobian_

Analytical Jacobian.

template<typename T>
jacobian_t roboptim::BadJacobian< T >::finiteDifferenceJacobian_

Jacobian computed through finite differences.

template<typename T>
value_type roboptim::BadJacobian< T >::maxDelta_

Maximum error.

Referenced by roboptim::BadJacobian< T >::BadJacobian().

template<typename T>
size_type roboptim::BadJacobian< T >::maxDeltaCol_
template<typename T>
size_type roboptim::BadJacobian< T >::maxDeltaRow_

Components containing the maximum error.

Referenced by roboptim::BadJacobian< T >::BadJacobian().

template<typename T>
value_type roboptim::BadJacobian< T >::threshold_

Allowed threshold.

template<typename T>
argument_t roboptim::BadJacobian< T >::x_

Jacobian has been computed for this point.