bundles / numpy latest / numpy / ma / extras / ediff1d
function
numpy.ma.extras:ediff1d
source: build-install/usr/lib/python3.14/site-packages/numpy/ma/extras.py :1229
Signature
def ediff1d ( arr , to_end = None , to_begin = None ) Summary
Compute the differences between consecutive elements of an array.
Extended Summary
This function is the equivalent of numpy.ediff1d that takes masked values into account, see numpy.ediff1d for details.
Examples
import numpy as np arr = np.ma.array([1, 2, 4, 7, 0]) np.ma.ediff1d(arr)✓
See also
- numpy.ediff1d
Equivalent function for ndarrays.
Aliases
-
numpy.ma.ediff1d