diff options
Diffstat (limited to 'eigen/test/schur_real.cpp')
-rw-r--r-- | eigen/test/schur_real.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eigen/test/schur_real.cpp b/eigen/test/schur_real.cpp index 36b9c24..4aede87 100644 --- a/eigen/test/schur_real.cpp +++ b/eigen/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 @@ -91,7 +91,7 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); - if (size > 2) + if (size > 2 && size < 20) { // Test matrix with NaN A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN(); |