diff options
Diffstat (limited to 'test/lu.cpp')
-rw-r--r-- | test/lu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lu.cpp b/test/lu.cpp index 60e45ff2b..4ad92bb11 100644 --- a/test/lu.cpp +++ b/test/lu.cpp @@ -57,6 +57,11 @@ template<typename MatrixType> void lu_non_invertible() VERIFY_IS_APPROX(m3, m1*m2); m3 = MatrixType::Random(rows,cols2); VERIFY(!lu.solve(m3, &m2)); + + typedef Matrix<typename MatrixType::Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; + SquareMatrixType m4(rows, rows), m5(rows, rows); + createRandomMatrixOfRank(rows/2, rows, rows, m4); + VERIFY(!m4.computeInverseWithCheck(&m5)); } template<typename MatrixType> void lu_invertible() |