jax-js
    Preparing search index...
    • Calculate the n-th discrete difference along the given axis.

      The first difference is given by out[i] = a[i+1] - a[i] along the given axis, and higher differences are calculated by applying this recursively. Boolean arrays are differenced with notEqual instead of subtraction.

      The prepend and append options attach values along axis before the differences are taken. Scalars are broadcast to size 1 along axis.

      Parameters

      Returns Array