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