12 #ifndef BOGUS_NUMTRAITS_HPP
13 #define BOGUS_NUMTRAITS_HPP
21 template <
typename Scalar>
24 static Scalar epsilon()
25 {
return std::numeric_limits< Scalar >::epsilon() ; }
26 static bool isZero( Scalar s )
27 {
return std::fabs(s) < std::numeric_limits< Scalar >::epsilon() ; }
28 static bool isSquareZero( Scalar s )
29 {
return s*s < std::numeric_limits< Scalar >::epsilon() ; }
32 template <
typename MatrixType>
Definition: EigenMatrixTraits.hpp:26
Definition: NumTraits.hpp:22