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/inverse.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/inverse.cpp') diff --git a/test/inverse.cpp b/test/inverse.cpp index 90b897197..cdac7cdec 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -65,6 +65,10 @@ template void inverse(const MatrixType& m) // since for the general case we implement separately row-major and col-major, test that VERIFY_IS_APPROX(m1.transpose().inverse(), m1.inverse().transpose()); + + bool invertible = m1.computeInverseWithCheck(&m2); + VERIFY(invertible); + VERIFY_IS_APPROX(identity, m1*m2); } void test_inverse() -- cgit v1.2.3