aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/jacobisvd.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-02 06:36:55 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-09-02 06:36:55 -0400
commite6b77bcc6bc915ec38640ecf414726fa2ba56fba (patch)
tree35bf233dbe4df303af9c5883186e56b51f200346 /test/jacobisvd.cpp
parentc16d65f01585b51f41b715a22c43983faab4299a (diff)
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)
Diffstat (limited to 'test/jacobisvd.cpp')
-rw-r--r--test/jacobisvd.cpp8
1 files changed, 5 insertions, 3 deletions
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<Matrix3f>() );
CALL_SUBTEST( svd_verify_assert<Matrix3d>() );