dpnp.diff

dpnp.diff(x1, n=1, axis=-1, prepend=<no value>, append=<no value>)[source]

Calculate the n-th discrete difference along the given axis.

For full documentation refer to numpy.diff.

Limitations

Input array is supported as dpnp.ndarray. Parameters axis, prepend and append are supported only with default values. Otherwise the function will be executed sequentially on CPU.