mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-20 20:04:26 +08:00
shutup floating point underflow warning for this specific unit test
This commit is contained in:
parent
7002639844
commit
13abb37721
@ -254,9 +254,17 @@ void jacobisvd_inf_nan()
|
|||||||
// matrices containing denormal numbers.
|
// matrices containing denormal numbers.
|
||||||
void jacobisvd_bug286()
|
void jacobisvd_bug286()
|
||||||
{
|
{
|
||||||
|
#if defined __INTEL_COMPILER
|
||||||
|
// shut up warning #239: floating point underflow
|
||||||
|
#pragma warning push
|
||||||
|
#pragma warning disable 239
|
||||||
|
#endif
|
||||||
Matrix2d M;
|
Matrix2d M;
|
||||||
M << -7.90884e-313, -4.94e-324,
|
M << -7.90884e-313, -4.94e-324,
|
||||||
0, 5.60844e-313;
|
0, 5.60844e-313;
|
||||||
|
#if defined __INTEL_COMPILER
|
||||||
|
#pragma warning pop
|
||||||
|
#endif
|
||||||
JacobiSVD<Matrix2d> svd;
|
JacobiSVD<Matrix2d> svd;
|
||||||
svd.compute(M); // just check we don't loop indefinitely
|
svd.compute(M); // just check we don't loop indefinitely
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user