From e6b77bcc6bc915ec38640ecf414726fa2ba56fba Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 2 Sep 2009 06:36:55 -0400 Subject: JacobiSVD: implement general R-SVD using full-pivoting QR, so we now support any rectangular matrix size by reducing to the smaller of the two dimensions (which is also an optimization) --- test/jacobisvd.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/jacobisvd.cpp') diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp index 9a4d79e45..8b4c7584e 100644 --- a/test/jacobisvd.cpp +++ b/test/jacobisvd.cpp @@ -91,12 +91,14 @@ void test_jacobisvd() CALL_SUBTEST( svd(Matrix3f()) ); CALL_SUBTEST( svd(Matrix4d()) ); CALL_SUBTEST( svd(MatrixXf(50,50)) ); -// CALL_SUBTEST( svd(MatrixXd(14,7)) ); + CALL_SUBTEST( svd(MatrixXcd(14,7)) ); + CALL_SUBTEST( svd(MatrixXd(10,50)) ); + CALL_SUBTEST( svd(MatrixXcf(3,3)) ); CALL_SUBTEST( svd(MatrixXd(30,30)) ); } - CALL_SUBTEST( svd(MatrixXf(200,200)) ); - CALL_SUBTEST( svd(MatrixXcd(100,100)) ); + CALL_SUBTEST( svd(MatrixXf(300,200)) ); + CALL_SUBTEST( svd(MatrixXcd(100,150)) ); CALL_SUBTEST( svd_verify_assert() ); CALL_SUBTEST( svd_verify_assert() ); -- cgit v1.2.3