MCPcopy
hub / github.com/dask/dask / __array_function__

Method __array_function__

dask/array/tests/test_dispatch.py:127–129  ·  view source on GitHub ↗
(self, func, types, args, kwargs)

Source from the content-addressed store, hash-verified

125 return type(self)(getattr(ufunc, method)(*inputs, **kwargs), **self.attrs)
126
127 def __array_function__(self, func, types, args, kwargs):
128 args = tuple(self._downcast_args(args))
129 return type(self)(func(*args, **kwargs), **self.attrs)
130
131 def __dask_graph__(self):
132 # Note: make sure that dask dusk arrays do not interfere with the

Callers 1

__array_function__Method · 0.45

Calls 2

_downcast_argsMethod · 0.95
funcFunction · 0.70

Tested by

no test coverage detected