diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-24 00:09:01 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-24 00:09:01 -0400 |
commit | 154bdac9f4fe8b3b2b9a3089b87392c16ccd89e1 (patch) | |
tree | c3157eceafb3505207081ba571d4cba1a677d63d | |
parent | b37ab9b324ca55e365146266fc93372910fb0a98 (diff) |
small improvements
-rw-r--r-- | test/lu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lu.cpp b/test/lu.cpp index 4ad92bb11..75680b96b 100644 --- a/test/lu.cpp +++ b/test/lu.cpp @@ -44,7 +44,7 @@ template<typename MatrixType> void lu_non_invertible() VERIFY(cols - lu.rank() == lu.dimensionOfKernel()); VERIFY(!lu.isInjective()); VERIFY(!lu.isInvertible()); - VERIFY(lu.isSurjective() == (lu.rank() == rows)); + VERIFY(!lu.isSurjective()); VERIFY((m1 * m1kernel).isMuchSmallerThan(m1)); VERIFY(m1image.lu().rank() == rank); MatrixType sidebyside(m1.rows(), m1.cols() + m1image.cols()); @@ -53,7 +53,7 @@ template<typename MatrixType> void lu_non_invertible() m2 = MatrixType::Random(cols,cols2); m3 = m1*m2; m2 = MatrixType::Random(cols,cols2); - lu.solve(m3, &m2); + VERIFY(lu.solve(m3, &m2)); VERIFY_IS_APPROX(m3, m1*m2); m3 = MatrixType::Random(rows,cols2); VERIFY(!lu.solve(m3, &m2)); |