diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-10-30 14:44:22 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-10-30 14:44:22 +0100 |
commit | 9285647dfe91c2fe3db112e71b219ee16db81e87 (patch) | |
tree | bc25a3b6031b7b52df022a0e13a51cb79a8853c7 /test/schur_complex.cpp | |
parent | ddaaa2d38184680e0e2cf8e26eaf4c1b0b8fa8fc (diff) |
Limit matrix size when testing for NaN: they can become prohibitively expensive when running on x87 fp unit
Diffstat (limited to 'test/schur_complex.cpp')
-rw-r--r-- | test/schur_complex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/schur_complex.cpp b/test/schur_complex.cpp index 5e869790f..deb78e44e 100644 --- a/test/schur_complex.cpp +++ b/test/schur_complex.cpp @@ -25,7 +25,7 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim ComplexMatrixType T = schurOfA.matrixT(); for(int row = 1; row < size; ++row) { for(int col = 0; col < row; ++col) { - VERIFY(T(row,col) == (typename MatrixType::Scalar)0); + VERIFY(T(row,col) == (typename MatrixType::Scalar)0); } } VERIFY_IS_APPROX(A.template cast<ComplexScalar>(), U * T * U.adjoint()); @@ -70,7 +70,7 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim VERIFY_IS_EQUAL(cs1.matrixT(), csOnlyT.matrixT()); VERIFY_RAISES_ASSERT(csOnlyT.matrixU()); - if (size > 1) + if (size > 1 && size < 20) { // Test matrix with NaN A(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN(); |