diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
commit | 6907886a156c4b94ec7530351b271e1c1bc5b81b (patch) | |
tree | 9c9431ba83e0234e5f199031ed48915ad6365422 /Eigen/src/Core/Fuzzy.h | |
parent | c67e717404258d3625a74c67f50be34939af6d95 (diff) |
prefix global functions with ei_ as previous solution was rather
fragile. also fix compilation with g++ 4.3.
Diffstat (limited to 'Eigen/src/Core/Fuzzy.h')
-rw-r--r-- | Eigen/src/Core/Fuzzy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/Fuzzy.h b/Eigen/src/Core/Fuzzy.h index 261f14b4a..c16438a2c 100644 --- a/Eigen/src/Core/Fuzzy.h +++ b/Eigen/src/Core/Fuzzy.h @@ -37,10 +37,10 @@ * \note Because of the multiplicativeness of this comparison, one can't use this function * to check whether \c *this is approximately equal to the zero matrix or vector. * Indeed, \c isApprox(zero) returns false unless \c *this itself is exactly the zero matrix - * or vector. If you want to test whether \c *this is zero, use isMuchSmallerThan(const + * or vector. If you want to test whether \c *this is zero, use ei_isMuchSmallerThan(const * RealScalar&, RealScalar) instead. * - * \sa isMuchSmallerThan(const RealScalar&, RealScalar) const + * \sa ei_isMuchSmallerThan(const RealScalar&, RealScalar) const */ template<typename Scalar, typename Derived> template<typename OtherDerived> @@ -82,12 +82,12 @@ bool MatrixBase<Scalar, Derived>::isMuchSmallerThan( { if(Traits::IsVectorAtCompileTime) { - return(norm2() <= abs2(other * prec)); + return(norm2() <= ei_abs2(other * prec)); } else { for(int i = 0; i < cols(); i++) - if(col(i).norm2() > abs2(other * prec)) + if(col(i).norm2() > ei_abs2(other * prec)) return false; return true; } |