#NEWLINE# def test_dot( self ) : #NEWLINE# #INDENT# x = np . random . randn ( 500 , 1000 ) #NEWLINE# y = np . random . randn ( 1000 , 600 ) #NEWLINE# eig_x = mat . EigenMatrix ( x ) #NEWLINE# eig_y = mat . EigenMatrix ( y ) #NEWLINE# eig_z = mat . empty ( ( x . shape [ 0 ] , eig_z . shape [ 1 ] ) ) #NEWLINE# z = x . dot ( y ) #NEWLINE# mat . dot ( eig_x , eig_y , target = eig_z ) #NEWLINE# diff = ( ( eig_z . asarray ( ) - z ) ** 2 ) . sum ( ) #NEWLINE# self . assertAlmostEqual ( diff , 0 , places = 5 )