Numba compatible implementation of np.diff(…) for 1d arrays.
The input array
The results of np.diff(…)