diff options
Diffstat (limited to 'test/schur_real.cpp')
-rw-r--r-- | test/schur_real.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/schur_real.cpp b/test/schur_real.cpp index 1e8c4b0ba..2eae52956 100644 --- a/test/schur_real.cpp +++ b/test/schur_real.cpp @@ -85,10 +85,13 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); - // Test matrix with NaN - A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN(); - RealSchur<MatrixType> rsNaN(A); - VERIFY_IS_EQUAL(rsNaN.info(), NoConvergence); + if (size > 1) + { + // Test matrix with NaN + A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN(); + RealSchur<MatrixType> rsNaN(A); + VERIFY_IS_EQUAL(rsNaN.info(), NoConvergence); + } } void test_schur_real() |