#NEWLINE# def test_bvector_smoketest( self ) : #NEWLINE# #INDENT# Adense = matrix ( [ [ 0.0 , 1.0 , 1.0 ] , [ 1.0 , 0.0 , 1.0 ] , [ 0.0 , 0.0 , 1.0 ] ] ) #NEWLINE# As = csc_matrix ( Adense ) #NEWLINE# random . seed ( 1234 ) #NEWLINE# x = random . randn ( 3 ) #NEWLINE# b = ( As * x ) #NEWLINE# x2 = spsolve ( As , b ) #NEWLINE# assert_array_almost_equal ( x , x2 )