Limit matrix size for other eigen and schur decompositions

This commit is contained in:
Gael Guennebaud 2015-10-30 18:06:03 +01:00
parent fdf3030ff8
commit 8a3151de2e
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ template<typename MatrixType> void eigensolver(const MatrixType& m)
MatrixType id = MatrixType::Identity(rows, cols); MatrixType id = MatrixType::Identity(rows, cols);
VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1)); VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1));
if (rows > 1) if (rows > 1 && rows < 20)
{ {
// Test matrix with NaN // Test matrix with NaN
a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN(); a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();

View File

@ -63,7 +63,7 @@ template<typename MatrixType> void eigensolver(const MatrixType& m)
MatrixType id = MatrixType::Identity(rows, cols); MatrixType id = MatrixType::Identity(rows, cols);
VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1)); VERIFY_IS_APPROX(id.operatorNorm(), RealScalar(1));
if (rows > 2) if (rows > 2 && rows < 20)
{ {
// Test matrix with NaN // Test matrix with NaN
a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN(); a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();

View File

@ -91,7 +91,7 @@ template<typename MatrixType> void schur(int size = MatrixType::ColsAtCompileTim
VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT()); VERIFY_IS_EQUAL(rs1.matrixT(), rsOnlyT.matrixT());
VERIFY_RAISES_ASSERT(rsOnlyT.matrixU()); VERIFY_RAISES_ASSERT(rsOnlyT.matrixU());
if (size > 2) if (size > 2 && rows < 20)
{ {
// Test matrix with NaN // Test matrix with NaN
A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN(); A(0,0) = std::numeric_limits<typename MatrixType::Scalar>::quiet_NaN();