aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/schur_real.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-07-06 15:02:49 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-07-06 15:02:49 +0200
commit9b68ed45370ebb840912206d1ebc1642f0c16785 (patch)
tree69cd9ffe677c581e149d00360c52f457ec43d101 /test/schur_real.cpp
parentc3b23d7dbf2a0a1aec7f8a41c5d1ff7e0dbda676 (diff)
Relax is_equal to is_approx because scaling might modify last bit.
Diffstat (limited to 'test/schur_real.cpp')
-rw-r--r--test/schur_real.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/schur_real.cpp b/test/schur_real.cpp
index cfe4570d4..4aede87df 100644
--- a/test/schur_real.cpp
+++ b/test/schur_real.cpp
@@ -82,7 +82,7 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim
Atriangular.template triangularView<StrictlyLower>().setZero();
rs3.setMaxIterations(1).compute(Atriangular); // triangular matrices do not need any iterations
VERIFY_IS_EQUAL(rs3.info(), Success);
- VERIFY_IS_EQUAL(rs3.matrixT(), Atriangular);
+ VERIFY_IS_APPROX(rs3.matrixT(), Atriangular); // approx because of scaling...
VERIFY_IS_EQUAL(rs3.matrixU(), MatrixType::Identity(size, size));
// Test computation of only T, not U