Computes the differences between consecutive elements of an array.
This function is the equivalent of numpy.ediff1d that takes masked values into account.
See also
numpy.ma.choose
numpy.ma.indices