def METHOD_NAME(self, x: NDArray) -> NDArray:
    ncp = get_array_module(x)
    y = ncp.zeros(x.shape, self.dtype)
    y[..., :-1] -= x[..., 1:]
    y[..., 1:] += x[..., 1:]
    y /= self.sampling
    return y