#NEWLINE# def test_svd_which( ) : #NEWLINE# #INDENT# x = hilbert ( 6 ) #NEWLINE# for which in [ 'LM' , 'SM' ] : #NEWLINE# #INDENT# ( _ , s , _ ) = sorted_svd ( x , 2 , which = which ) #NEWLINE# ss = svds ( x , 2 , which = which , return_singular_vectors = False ) #NEWLINE# ss . sort ( ) #NEWLINE# assert_allclose ( s , _ , atol = np . sqrt ( 1e-15 ) )