#NEWLINE# def test_random( self ) : #NEWLINE# #INDENT# n = 20 #NEWLINE# for k in range ( 2 ) : #NEWLINE# #INDENT# a = random ( [ n , n ] ) #NEWLINE# ( r , q ) = rq ( a ) #NEWLINE# assert_array_almost_equal ( dot ( a , transpose ( q ) ) , identity ( n ) ) #NEWLINE# assert_array_almost_equal ( dot ( r , q ) , a )