#NEWLINE# def test_trapz_float64( self ) : #NEWLINE# #INDENT# x = np . asarray ( np . random . rand ( 10 ) , np . float64 ) #NEWLINE# x_gpu = gpuarray . to_gpu ( x ) #NEWLINE# z = integrate . trapz ( x ) #NEWLINE# assert np . allclose ( np . trapz ( x ) , z )