#NEWLINE# def test_2x2( self ) : #NEWLINE# #INDENT# a = [ [ 2 , 1 ] , [ 7 , 12 ] ] #NEWLINE# ( h , q ) = hessenberg ( a , calc_q = 1 ) #NEWLINE# assert_array_almost_equal ( q , np . eye ( 2 ) ) #NEWLINE# assert_array_almost_equal ( h , a ) #NEWLINE# b = [ [ ( 2 - 7j ) , ( 1 + 2j ) ] , [ ( 7 + 3j ) , ( 12 - 2j ) ] ] #NEWLINE# ( h2 , q2 ) = hessenberg ( b , calc_q = 1 ) #NEWLINE# assert_array_almost_equal ( q2 , np . eye ( 2 ) ) #NEWLINE# assert_array_almost_equal ( h2 , b )