MCPcopy Create free account
hub / github.com/dask/dask / arg_combine

Function arg_combine

dask/array/reductions.py:817–830  ·  view source on GitHub ↗
(argfunc, data, axis=None, **kwargs)

Source from the content-addressed store, hash-verified

815
816
817def arg_combine(argfunc, data, axis=None, **kwargs):
818 arg, vals = _arg_combine(data, axis, argfunc, keepdims=True)
819
820 try:
821 result = np.empty_like(
822 vals, shape=vals.shape, dtype=[("vals", vals.dtype), ("arg", arg.dtype)]
823 )
824 except TypeError:
825 # Array type doesn't support structured arrays (e.g., CuPy).
826 result = dict()
827
828 result["vals"] = vals
829 result["arg"] = arg
830 return result
831
832
833def arg_agg(argfunc, data, axis=None, keepdims=False, **kwargs):

Callers

nothing calls this directly

Calls 1

_arg_combineFunction · 0.85

Tested by

no test coverage detected