#NEWLINE# def test_simple3( self ) : #NEWLINE# #INDENT# a = np . eye ( 3 ) #NEWLINE# a [ ( ( - 1 ) , 0 ) ] = 2 #NEWLINE# ( h , q ) = hessenberg ( a , calc_q = 1 ) #NEWLINE# assert_array_almost_equal ( dot ( transp ( q ) , dot ( a , q ) ) , h )