diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-08 15:56:16 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-08 15:56:16 -0700 |
commit | 89a3dc35a339eee62635a133b2c351ce45011419 (patch) | |
tree | 5f790fae58a91c6d4083acad1d87437ac1a36ce0 /Eigen/src/Core/MathFunctions.h | |
parent | 995f202cea0677264405496c1ef0c3a8570f7dda (diff) |
Fixed isfinite_impl: NumTraits<T>::highest() and NumTraits<T>::lowest() are finite numbers.
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index fd73f543b..2f66c7463 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -710,7 +710,7 @@ isfinite_impl(const T& x) using std::isfinite; return isfinite EIGEN_NOT_A_MACRO (x); #else - return x<NumTraits<T>::highest() && x>NumTraits<T>::lowest(); + return x<=NumTraits<T>::highest() && x>=NumTraits<T>::lowest(); #endif } |