mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fixed some SVD issues.
Make the SVD's output unitary. Improved unit tests. Added an assert to the SVD ctor to check whether rows>=cols.
This commit is contained in:
@@ -95,6 +95,8 @@ template<typename MatrixType> void svd_verify_assert()
|
||||
VERIFY_RAISES_ASSERT(svd.computePositiveUnitary(&tmp,&tmp))
|
||||
VERIFY_RAISES_ASSERT(svd.computeRotationScaling(&tmp,&tmp))
|
||||
VERIFY_RAISES_ASSERT(svd.computeScalingRotation(&tmp,&tmp))
|
||||
|
||||
VERIFY_RAISES_ASSERT(SVD<MatrixXf>(10, 20))
|
||||
}
|
||||
|
||||
void test_svd()
|
||||
@@ -116,7 +118,4 @@ void test_svd()
|
||||
CALL_SUBTEST_2( svd_verify_assert<Matrix4d>() );
|
||||
CALL_SUBTEST_3( svd_verify_assert<MatrixXf>() );
|
||||
CALL_SUBTEST_4( svd_verify_assert<MatrixXd>() );
|
||||
|
||||
// Test problem size constructors
|
||||
CALL_SUBTEST_9( SVD<MatrixXf>(10, 20) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user