diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-10-20 11:38:51 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-10-20 11:38:51 +0200 |
commit | aa5f79206fb632d141c3555338f89f59d1bb4633 (patch) | |
tree | a16506f4dcb277c129301dac1a8408cba1136a1d /test/stable_norm.cpp | |
parent | b4a9b3f4960657bf2fc156ba5c25a3a32417b861 (diff) |
Fix bug #859: pexp(NaN) returned Inf instead of NaN
Diffstat (limited to 'test/stable_norm.cpp')
-rw-r--r-- | test/stable_norm.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/stable_norm.cpp b/test/stable_norm.cpp index 6cd65c64a..650f62a8a 100644 --- a/test/stable_norm.cpp +++ b/test/stable_norm.cpp @@ -9,26 +9,6 @@ #include "main.h" -template<typename T> bool isNotNaN(const T& x) -{ - return x==x; -} - -template<typename T> bool isNaN(const T& x) -{ - return x!=x; -} - -template<typename T> bool isInf(const T& x) -{ - return x > NumTraits<T>::highest(); -} - -template<typename T> bool isMinusInf(const T& x) -{ - return x < NumTraits<T>::lowest(); -} - // workaround aggressive optimization in ICC template<typename T> EIGEN_DONT_INLINE T sub(T a, T b) { return a - b; } |