aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/stable_norm.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-09 09:48:06 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-09 09:48:06 +0200
commit8cc02169fde556a06af0e641f26fa39fcb9f95be (patch)
treeff04ee12a99863f24e909acd0f3451d6c9368f9c /test/stable_norm.cpp
parent45d3b405eb1bd3f3f7f4f2043621a57e6bee1365 (diff)
Fix devision by zero warning.
Diffstat (limited to 'test/stable_norm.cpp')
-rw-r--r--test/stable_norm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/stable_norm.cpp b/test/stable_norm.cpp
index c5a0296c5..77b062303 100644
--- a/test/stable_norm.cpp
+++ b/test/stable_norm.cpp
@@ -74,8 +74,7 @@ template<typename MatrixType> void stable_norm(const MatrixType& m)
RealScalar size = static_cast<RealScalar>(m.size());
// test isFinite
- VERIFY(!isFinite( ei_abs(big)/RealScalar(0)));
- VERIFY(!isFinite(-ei_abs(big)/RealScalar(0)));
+ VERIFY(!isFinite( std::numeric_limits<RealScalar>::infinity()));
VERIFY(!isFinite(ei_sqrt(-ei_abs(big))));
// test overflow