28 #include "autodiff/forward/dual/dual.hpp"
34 bool checkIfEqual(
const double a,
const double b,
const double tol = 1e-15 );
36 bool checkIfEqual(
const autodiff::dual a,
const autodiff::dual b,
const double tol = 1e-15 );
41 template <
typename T >
43 const Eigen::Matrix< T, -1, -1 >& b,
44 const double tol = 1e-15 )
46 if ( a.rows() != b.rows() || a.cols() != b.cols() ) {
49 for (
int i = 0; i < a.rows(); i++ ) {
50 for (
int j = 0; j < a.cols(); j++ ) {
53 std::cout <<
" -> HINT: a(" << i <<
"," << j <<
") = " <<
getString( a( i, j ) ) <<
" != b(" << i <<
","
54 << j <<
") =" <<
getString( b( i, j ) ) << std::endl;