aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/jacobisvd.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-01-31 23:18:17 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-01-31 23:18:17 +0100
commit13abb37721fbade82e597e3645e11ce05bedd4b6 (patch)
treef040c6323ae1c07693db328dc68641f08b824899 /test/jacobisvd.cpp
parent7002639844b0dc567cea5595ba6dfd597dbf1ce5 (diff)
shutup floating point underflow warning for this specific unit test
Diffstat (limited to 'test/jacobisvd.cpp')
-rw-r--r--test/jacobisvd.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp
index fb44dae95..3012fbe75 100644
--- a/test/jacobisvd.cpp
+++ b/test/jacobisvd.cpp
@@ -254,9 +254,17 @@ void jacobisvd_inf_nan()
// matrices containing denormal numbers.
void jacobisvd_bug286()
{
+#if defined __INTEL_COMPILER
+// shut up warning #239: floating point underflow
+#pragma warning push
+#pragma warning disable 239
+#endif
Matrix2d M;
M << -7.90884e-313, -4.94e-324,
0, 5.60844e-313;
+#if defined __INTEL_COMPILER
+#pragma warning pop
+#endif
JacobiSVD<Matrix2d> svd;
svd.compute(M); // just check we don't loop indefinitely
}