#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# a = [ [ 8 , 12 , 3 ] , [ 2 , 9 , 3 ] , [ 10 , 3 , 6 ] ] #NEWLINE# ( t , z ) = schur ( a ) #NEWLINE# assert_array_almost_equal ( dot ( dot ( z , t ) , transp ( conj ( z ) ) ) , a ) #NEWLINE# ( tc , zc ) = schur ( a , 'complex' ) #NEWLINE# assert_ ( ( any ( ravel ( iscomplex ( zc ) ) ) and any ( ravel ( iscomplex ( zc2 ) ) ) ) ) #NEWLINE# assert_array_almost_equal ( dot ( dot ( zc , tc ) , transp ( conj ( zc ) ) ) , a ) #NEWLINE# ( tc2 , zc2 ) = rsf2csf ( tc , zc ) #NEWLINE# assert_array_almost_equal ( dot ( dot ( zc2 , tc2 ) , transp ( conj ( zc2 ) ) ) , a )