diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-24 11:11:41 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-08-24 11:11:41 -0400 |
commit | 0eb142f5595aa7d18b6c08a9e8ebc355f3a9b525 (patch) | |
tree | 7f7ae202d86074cc8a93e7ff266f2f9f21cfa87f /test/qr_fullpivoting.cpp | |
parent | 3288e5157a8d2c8a35c5c0835e4670386cded0ff (diff) |
bring the modern comfort also to ColPivotingHouseholderQR
+ some fixes in FullPivotingHouseholderQR
Diffstat (limited to 'test/qr_fullpivoting.cpp')
-rw-r--r-- | test/qr_fullpivoting.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/qr_fullpivoting.cpp b/test/qr_fullpivoting.cpp index a6430e6f1..bdebea7cc 100644 --- a/test/qr_fullpivoting.cpp +++ b/test/qr_fullpivoting.cpp @@ -28,7 +28,6 @@ template<typename MatrixType> void qr() { - /* this test covers the following files: QR.h */ int rows = ei_random<int>(20,200), cols = ei_random<int>(20,200), cols2 = ei_random<int>(20,200); int rank = ei_random<int>(1, std::min(rows, cols)-1); @@ -44,7 +43,6 @@ template<typename MatrixType> void qr() VERIFY(!qr.isInvertible()); VERIFY(!qr.isSurjective()); - MatrixType r = qr.matrixQR(); // FIXME need better way to construct trapezoid for(int i = 0; i < rows; i++) for(int j = 0; j < cols; j++) if(i>j) r(i,j) = Scalar(0); @@ -110,6 +108,12 @@ template<typename MatrixType> void qr_verify_assert() VERIFY_RAISES_ASSERT(qr.matrixR()) VERIFY_RAISES_ASSERT(qr.solve(tmp,&tmp)) VERIFY_RAISES_ASSERT(qr.matrixQ()) + VERIFY_RAISES_ASSERT(qr.dimensionOfKernel()) + VERIFY_RAISES_ASSERT(qr.isInjective()) + VERIFY_RAISES_ASSERT(qr.isSurjective()) + VERIFY_RAISES_ASSERT(qr.isInvertible()) + VERIFY_RAISES_ASSERT(qr.computeInverse(&tmp)) + VERIFY_RAISES_ASSERT(qr.inverse()) } void test_qr_fullpivoting() |