MCPcopy Index your code
hub / github.com/dask/dask / wrapped

Function wrapped

dask/array/ufunc.py:19–24  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

17 """Wrap up numpy function into dask.array"""
18
19 def wrapped(*args, **kwargs):
20 dsk = [arg for arg in args if hasattr(arg, "_elemwise")]
21 if len(dsk) > 0:
22 return dsk[0]._elemwise(numpy_ufunc, *args, **kwargs)
23 else:
24 return numpy_ufunc(*args, **kwargs)
25
26 wrapped.__name__ = numpy_ufunc.__name__
27 return derived_from(source)(wrapped)

Callers

nothing calls this directly

Calls 1

_elemwiseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…