MCPcopy
hub / github.com/dask/dask / ediff1d

Function ediff1d

dask/array/routines.py:624–637  ·  view source on GitHub ↗
(ary, to_end=None, to_begin=None)

Source from the content-addressed store, hash-verified

622
623@derived_from(np)
624def ediff1d(ary, to_end=None, to_begin=None):
625 ary = asarray(ary)
626
627 aryf = ary.flatten()
628 r = aryf[1:] - aryf[:-1]
629
630 r = [r]
631 if to_begin is not None:
632 r = [asarray(to_begin).flatten()] + r
633 if to_end is not None:
634 r = r + [asarray(to_end).flatten()]
635 r = concatenate(r)
636
637 return r
638
639
640def _gradient_kernel(x, block_id, coord, axis, array_locs, grad_kwargs):

Callers

nothing calls this directly

Calls 3

asarrayFunction · 0.90
concatenateFunction · 0.90
flattenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…