aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/adjoint.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-01-30 22:14:04 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-01-30 22:14:04 +0100
commit3ba8a3ab1a77fd2f58448187c6881d13bf51f430 (patch)
treefc04ce99d3dbab5ad9915ceaee91486d17277a74 /test/adjoint.cpp
parent483082ef6e4ff25d43cba03e1b1f2ed15000ac3b (diff)
Disable underflow unit test on the i387 FPU.
Diffstat (limited to 'test/adjoint.cpp')
-rw-r--r--test/adjoint.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp
index b1e69c2e5..9c895e0ac 100644
--- a/test/adjoint.cpp
+++ b/test/adjoint.cpp
@@ -45,12 +45,14 @@ template<> struct adjoint_specific<false> {
// check null inputs
VERIFY_IS_APPROX((v1*0).normalized(), (v1*0));
+#if (!EIGEN_ARCH_i386) || defined(EIGEN_VECTORIZE)
RealScalar very_small = (std::numeric_limits<RealScalar>::min)();
VERIFY( (v1*very_small).norm() == 0 );
VERIFY_IS_APPROX((v1*very_small).normalized(), (v1*very_small));
v3 = v1*very_small;
v3.normalize();
VERIFY_IS_APPROX(v3, (v1*very_small));
+#endif
// check compatibility of dot and adjoint
ref = NumTraits<Scalar>::IsInteger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adjoint() * v1).norm()));