Compute the differences between consecutive elements of an array.
The input is flattened before taking differences. opts.toBegin and opts.toEnd are flattened, cast to the input dtype, and prepended or appended to the result.
opts.toBegin
opts.toEnd
Optional
Compute the differences between consecutive elements of an array.
The input is flattened before taking differences.
opts.toBeginandopts.toEndare flattened, cast to the input dtype, and prepended or appended to the result.