From 6907886a156c4b94ec7530351b271e1c1bc5b81b Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Thu, 28 Feb 2008 12:38:12 +0000 Subject: prefix global functions with ei_ as previous solution was rather fragile. also fix compilation with g++ 4.3. --- Eigen/src/Core/Fuzzy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Eigen/src/Core/Fuzzy.h') 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 template @@ -82,12 +82,12 @@ bool MatrixBase::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; } -- cgit v1.2.3