#NEWLINE# def test_simple_complex_right_pivoting( self ) : #NEWLINE# #INDENT# a = np . asarray ( [ [ 3 , ( 3 + 4j ) , 5 ] , [ 5 , 2 , ( 2 + 7j ) ] , [ 3 , 2 , 7 ] ] ) #NEWLINE# ( q , r , jpvt ) = qr ( a , pivoting = True ) #NEWLINE# c = [ 1 , 2 , ( 3 + 4j ) ] #NEWLINE# ( qc , r , jpvt ) = qr_multiply ( a , c , pivoting = True ) #NEWLINE# assert_array_almost_equal ( dot ( c , q ) , qc )