diff options
author | 2010-02-11 11:31:22 +0100 | |
---|---|---|
committer | 2010-02-11 11:31:22 +0100 | |
commit | 93e86b0884fa9ad6f6fe02645ce8dc15c2a6daf9 (patch) | |
tree | d5107d1d98e790ec356e1242a032bc2a0118020c /Eigen/src/Core | |
parent | 48f59806698037fdf0517c3bbe19e4f50865d655 (diff) |
Fixed typos.
Replace NumTraits<bool>::dummy_precision() (three locations) by false in order to suppress warnings.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 6 | ||||
-rw-r--r-- | Eigen/src/Core/NumTraits.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 1a4561555..d9119c245 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -321,15 +321,15 @@ template<> inline bool ei_random() { return (ei_random<int>(0,1) == 1); } -inline bool ei_isMuchSmallerThan(bool a, bool, bool = NumTraits<bool>::dummy_precision()) +inline bool ei_isMuchSmallerThan(bool a, bool, bool = false/*NumTraits<bool>::dummy_precision()*/) { return !a; } -inline bool ei_isApprox(bool a, bool b, bool = NumTraits<bool>::dummy_precision()) +inline bool ei_isApprox(bool a, bool b, bool = false/*NumTraits<bool>::dummy_precision()*/) { return a == b; } -inline bool ei_isApproxOrLessThan(bool a, bool b, bool = NumTraits<bool>::dummy_precision()) +inline bool ei_isApproxOrLessThan(bool a, bool b, bool = false/*NumTraits<bool>::dummy_precision()*/) { return int(a) <= int(b); } diff --git a/Eigen/src/Core/NumTraits.h b/Eigen/src/Core/NumTraits.h index 1baf62496..4f0cc04eb 100644 --- a/Eigen/src/Core/NumTraits.h +++ b/Eigen/src/Core/NumTraits.h @@ -47,7 +47,7 @@ * and to \c 1 otherwise. * \li An epsilon() function which, unlike std::numeric_limits::epsilon(), returns a \a Real instead of a \a T. * \li A dummy_precision() function returning a weak epsilon value. It is mainly used by the fuzzy comparison operators. - * \li Two higest() and lowest() functions returning the higest and lowest possible values respectively. + * \li Two highest() and lowest() functions returning the highest and lowest possible values respectively. */ template<typename T> struct NumTraits; |