#NEWLINE# def test_splu_smoketest( self ) : #NEWLINE# #INDENT# with warnings . catch_warnings ( ) : #NEWLINE# #INDENT# warnings . simplefilter ( 'ignore' , category = SparseEfficiencyWarning ) #NEWLINE# def check( A , b , x , msg = '' ) : #NEWLINE# #INDENT# eps = np . finfo ( A . dtype ) . eps #NEWLINE# r = ( A * x ) #NEWLINE# assert_ ( ( abs ( ( r - b ) ) . max ( ) < ( 1000.0 * eps ) ) , msg ) #NEWLINE# #UNINDENT# self . _smoketest ( splu , check , np . float32 ) #NEWLINE# self . _smoketest ( splu , check , np . float64 ) #NEWLINE# self . _smoketest ( splu , check , np . complex64 ) #NEWLINE# self . _smoketest ( splu , check , np . complex128 )