#NEWLINE# def test_trapz2d_complex128( self ) : #NEWLINE# #INDENT# x = np . asarray ( ( np . random . rand ( 5 , 5 ) + ( 1j * np . random . rand ( 5 , 5 ) ) ) , np . complex128 ) #NEWLINE# x_gpu = gpuarray . to_gpu ( x ) #NEWLINE# z = integrate . trapz2d ( x_gpu ) #NEWLINE# assert np . allclose ( np . trapz ( np . trapz ( x ) ) , self )