equals and print for Matrix types

release/4.3a0
dellaert 2014-11-03 09:27:05 +01:00
parent e0c4d84dd7
commit 64d0a3b4dc
1 changed files with 12 additions and 0 deletions

View File

@ -140,6 +140,18 @@ struct zero<Eigen::Matrix<double, M, N, Options> > : public boost::integral_cons
} }
}; };
// These functions should maybe be wrapped into a struct object?
template<class T>
bool equals(const Eigen::DenseBase<T>& A, const Eigen::DenseBase<T>& B,
double tol) {
return equal_with_abs_tol(A, B, tol);
}
template<typename T>
void print(const Eigen::DenseBase<T>& A, const std::string& str) {
print(A,str);
}
template <typename T> struct is_chart : public boost::false_type {}; template <typename T> struct is_chart : public boost::false_type {};
} // \ namespace traits } // \ namespace traits