.. _program_listing_file__tmp_ws_src_eigenpy_include_eigenpy_utils_is-approx.hpp: Program Listing for File is-approx.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/eigenpy/include/eigenpy/utils/is-approx.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright 2020-2024 INRIA */ #ifndef __eigenpy_utils_is_approx_hpp__ #define __eigenpy_utils_is_approx_hpp__ #include #include namespace eigenpy { template EIGEN_DONT_INLINE bool is_approx(const Eigen::MatrixBase& mat1, const Eigen::MatrixBase& mat2, const typename MatrixType1::RealScalar& prec) { return mat1.isApprox(mat2, prec); } template EIGEN_DONT_INLINE bool is_approx(const Eigen::MatrixBase& mat1, const Eigen::MatrixBase& mat2) { return is_approx( mat1, mat2, Eigen::NumTraits::dummy_precision()); } template EIGEN_DONT_INLINE bool is_approx( const Eigen::SparseMatrixBase& mat1, const Eigen::SparseMatrixBase& mat2, const typename MatrixType1::RealScalar& prec) { return mat1.isApprox(mat2, prec); } template EIGEN_DONT_INLINE bool is_approx( const Eigen::SparseMatrixBase& mat1, const Eigen::SparseMatrixBase& mat2) { return is_approx( mat1, mat2, Eigen::NumTraits::dummy_precision()); } } // namespace eigenpy #endif // ifndef __eigenpy_utils_is_approx_hpp__