diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-10-30 18:06:03 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-10-30 18:06:03 +0100 |
commit | 8a3151de2eae8299629417c98c1040b7ced5bdb5 (patch) | |
tree | 18646974fc55c06ab2c61c44d36078a0506d450a | |
parent | fdf3030ff86fc7d194e6c67acafca80d3148991c (diff) |
Limit matrix size for other eigen and schur decompositions
-rw-r--r-- | test/eigensolver_complex.cpp | 2 | ||||
-rw-r--r-- | test/eigensolver_generic.cpp | 2 | ||||
-rw-r--r-- | test/schur_real.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/eigensolver_complex.cpp b/test/eigensolver_complex.cpp index ad982ed40..8e2bb9ef0 100644 --- a/test/eigensolver_complex.cpp +++ b/test/eigensolver_complex.cpp @@ -118,7 +118,7 @@ template<typename MatrixType> void eigensolver(const MatrixType& m) MatrixType id = MatrixType::Identity(rows, cols); VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1)); - if (rows > 1) + if (rows > 1 && rows < 20) { // Test matrix with NaN a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN(); diff --git a/test/eigensolver_generic.cpp b/test/eigensolver_generic.cpp index c42fcaeba..566546310 100644 --- a/test/eigensolver_generic.cpp +++ b/test/eigensolver_generic.cpp @@ -63,7 +63,7 @@ template<typename MatrixType> void eigensolver(const MatrixType& m) MatrixType id = MatrixType::Identity(rows, cols); VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1)); - if (rows > 2) + if (rows > 2 && rows < 20) { // Test matrix with NaN a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN(); diff --git a/test/schur_real.cpp b/test/schur_real.cpp index 36b9c24d1..e67db6433 100644 --- a/test/schur_real.cpp +++ b/test/schur_real.cpp @@ -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 && rows < 20) { // Test matrix with NaN A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN(); |