@@ -166,20 +166,18 @@ mod simple_comparison_tests {
166166 #[ test]
167167 fn test_random_svd_computation ( ) {
168168
169- // Create a matrix with high sparsity (99%)
170169 let test_matrix = create_sparse_matrix ( 1000 , 250 , 0.01 ) ; // 1% non-zeros
171170
172- // Convert to CSR for processing
173171 let csr = CsrMatrix :: from ( & test_matrix) ;
174172
175- // Run randomized SVD with reasonable defaults for a sparse matrix
176173 let result = randomized:: randomized_svd (
177174 & csr,
178- 50 , // target rank
179- 10 , // oversampling parameter
180- 3 , // power iterations
181- randomized:: PowerIterationNormalizer :: QR , // use QR normalization
182- Some ( 42 ) , // random seed
175+ 50 ,
176+ 10 ,
177+ 3 ,
178+ randomized:: PowerIterationNormalizer :: QR ,
179+ false ,
180+ Some ( 42 ) ,
183181 ) ;
184182
185183 // Verify the computation succeeds on a highly sparse matrix
@@ -206,8 +204,8 @@ mod simple_comparison_tests {
206204 }
207205
208206 // Verify basics of U and V dimensions
209- assert_eq ! ( svd_result. ut . nrows( ) , 50 , "U transpose should have 50 rows" ) ;
210- assert_eq ! ( svd_result. ut . ncols( ) , 1000 , "U transpose should have 1000 columns" ) ;
207+ assert_eq ! ( svd_result. u . nrows( ) , 50 , "U transpose should have 50 rows" ) ;
208+ assert_eq ! ( svd_result. u . ncols( ) , 1000 , "U transpose should have 1000 columns" ) ;
211209 assert_eq ! ( svd_result. vt. nrows( ) , 50 , "V transpose should have 50 rows" ) ;
212210 assert_eq ! ( svd_result. vt. ncols( ) , 250 , "V transpose should have 250 columns" ) ;
213211
@@ -232,6 +230,7 @@ mod simple_comparison_tests {
232230 10 , // oversampling parameter
233231 7 , // power iterations
234232 randomized:: PowerIterationNormalizer :: QR , // use QR normalization
233+ false ,
235234 Some ( 42 ) , // random seed
236235 )
237236 } ) ;
@@ -263,6 +262,7 @@ mod simple_comparison_tests {
263262 10 , // oversampling parameter
264263 2 , // power iterations
265264 randomized:: PowerIterationNormalizer :: QR , // use QR normalization
265+ false ,
266266 Some ( 42 ) , // random seed
267267 )
268268 } ) ;
0 commit comments