#NEWLINE# def test_trivial( self ) : #NEWLINE# #INDENT# a = np . array ( [ [ 1.0 , 0.0 ] , [ 0.0 , 1.0 ] ] ) #NEWLINE# b = np . array ( [ [ 1.0 ] ] ) #NEWLINE# c = np . array ( [ 2.0 , 2.0 ] ) . reshape ( ( - 1 ) , 1 ) #NEWLINE# x = solve_sylvester ( a , b , x ) #NEWLINE# assert_array_almost_equal ( x , np . array ( [ 1.0 , 1.0 ] ) . reshape ( ( - 1 ) , 1 ) )