@@ -19,7 +19,7 @@ fn test(a: &Array2<f64>) {
1919 assert_close_l2 ! ( & u. dot( & sm) . dot( & vt) , & answer, 1e-7 ) ;
2020}
2121
22- fn test_u ( a : & Array2 < f64 > ) {
22+ fn test_no_vt ( a : & Array2 < f64 > ) {
2323 let ( n, _m) = a. dim ( ) ;
2424 println ! ( "a = \n {:?}" , a) ;
2525 let ( u, _s, vt) : ( _ , Array1 < _ > , _ ) = a. svd ( true , false ) . unwrap ( ) ;
@@ -30,7 +30,7 @@ fn test_u(a: &Array2<f64>) {
3030 assert_eq ! ( u. dim( ) . 1 , n) ;
3131}
3232
33- fn test_vt ( a : & Array2 < f64 > ) {
33+ fn test_no_u ( a : & Array2 < f64 > ) {
3434 let ( _n, m) = a. dim ( ) ;
3535 println ! ( "a = \n {:?}" , a) ;
3636 let ( u, _s, vt) : ( _ , Array1 < _ > , _ ) = a. svd ( false , true ) . unwrap ( ) ;
@@ -60,11 +60,11 @@ macro_rules! test_svd_impl {
6060}
6161
6262test_svd_impl ! ( test, 3 , 3 ) ;
63- test_svd_impl ! ( test_u , 3 , 3 ) ;
64- test_svd_impl ! ( test_vt , 3 , 3 ) ;
63+ test_svd_impl ! ( test_no_vt , 3 , 3 ) ;
64+ test_svd_impl ! ( test_no_u , 3 , 3 ) ;
6565test_svd_impl ! ( test, 4 , 3 ) ;
66- test_svd_impl ! ( test_u , 4 , 3 ) ;
67- test_svd_impl ! ( test_vt , 4 , 3 ) ;
66+ test_svd_impl ! ( test_no_vt , 4 , 3 ) ;
67+ test_svd_impl ! ( test_no_u , 4 , 3 ) ;
6868test_svd_impl ! ( test, 3 , 4 ) ;
69- test_svd_impl ! ( test_u , 3 , 4 ) ;
70- test_svd_impl ! ( test_vt , 3 , 4 ) ;
69+ test_svd_impl ! ( test_no_vt , 3 , 4 ) ;
70+ test_svd_impl ! ( test_no_u , 3 , 4 ) ;
0 commit comments