From 0eb142f5595aa7d18b6c08a9e8ebc355f3a9b525 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 24 Aug 2009 11:11:41 -0400 Subject: bring the modern comfort also to ColPivotingHouseholderQR + some fixes in FullPivotingHouseholderQR --- test/qr_fullpivoting.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/qr_fullpivoting.cpp') 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 void qr() { - /* this test covers the following files: QR.h */ int rows = ei_random(20,200), cols = ei_random(20,200), cols2 = ei_random(20,200); int rank = ei_random(1, std::min(rows, cols)-1); @@ -44,7 +43,6 @@ template 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 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() -- cgit v1.2.3