From 7b750182f244683d37de585b6181cf59bf24ff2b Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 29 Jun 2009 22:07:37 +0200 Subject: * polish computeInverseWithCheck to share more code, fix documentation, fix coding style * add snippet for computeInverseWithCheck documentation * expand unit-tests to cover computeInverseWithCheck --- test/lu.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/lu.cpp') 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 void lu_non_invertible() VERIFY_IS_APPROX(m3, m1*m2); m3 = MatrixType::Random(rows,cols2); VERIFY(!lu.solve(m3, &m2)); + + typedef Matrix SquareMatrixType; + SquareMatrixType m4(rows, rows), m5(rows, rows); + createRandomMatrixOfRank(rows/2, rows, rows, m4); + VERIFY(!m4.computeInverseWithCheck(&m5)); } template void lu_invertible() -- cgit v1.2.3