diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-06-29 22:07:37 +0200 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-06-29 22:07:37 +0200 |
commit | 7b750182f244683d37de585b6181cf59bf24ff2b (patch) | |
tree | ac97489c1d12ec3ceed6055dfb18b8f001d39819 /test/inverse.cpp | |
parent | 126a031a391390f42d95f2adb9a13db6345ab007 (diff) |
* polish computeInverseWithCheck to share more code, fix documentation, fix coding style
* add snippet for computeInverseWithCheck documentation
* expand unit-tests to cover computeInverseWithCheck
Diffstat (limited to 'test/inverse.cpp')
-rw-r--r-- | test/inverse.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<typename MatrixType> 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() |