5 #ifndef __eigenpy_utils_scalar_is_approx_hpp__
6 #define __eigenpy_utils_scalar_is_approx_hpp__
11 template <
typename MatrixType1,
typename MatrixType2>
13 const Eigen::MatrixBase<MatrixType1>& mat1,
14 const Eigen::MatrixBase<MatrixType2>& mat2,
15 const typename MatrixType1::Scalar& prec) {
16 return mat1.isApprox(mat2, prec);
19 template <
typename MatrixType1,
typename MatrixType2>
21 const Eigen::MatrixBase<MatrixType1>& mat1,
22 const Eigen::MatrixBase<MatrixType2>& mat2) {
25 Eigen::NumTraits<typename MatrixType1::Scalar>::dummy_precision());
29 #endif // ifndef __eigenpy_utils_scalar_is_approx_hpp__