def _convolve_np(data, h):
    """
    numpy variant
    """

    data_g = OCLArray.from_array(np.require(data,np.float32,"C"))
    h_g = OCLArray.from_array(np.require(h,np.float32,"C"))

    return _convolve_buf(data_g, h_g).get()
def _convolve_np ( data , h ) : data_g = OCLArray . from_array ( np . require ( data , np . float32 , "C" ) ) h_g = OCLArray . from_array ( np . require ( h , np . float32 , "C" ) ) return _convolve_buf ( data_g , h_g ) . get ( )
numpy variant