Defined in header <scicpp/core.hpp>
The n-th discrete difference between consecutive elements of an array.
n
T
N
diff
Return a std::vector of size max(a.size() - n, 0).
max(a.size() - n, 0)