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

Function prod

dask/array/reductions.py:87–101  ·  view source on GitHub ↗
(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

85
86@derived_from(np)
87def prod(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
88 if dtype is not None:
89 dt = dtype
90 else:
91 dt = getattr(np.ones((1,), dtype=a.dtype).prod(), "dtype", object)
92 return reduction(
93 a,
94 chunk.prod,
95 chunk.prod,
96 axis=axis,
97 keepdims=keepdims,
98 dtype=dt,
99 split_every=split_every,
100 out=out,
101 )
102
103
104@implements(np.min, np.amin)

Callers 4

prodMethod · 0.90
prodMethod · 0.90
__len__Method · 0.85
cullMethod · 0.85

Calls 3

reductionFunction · 0.90
prodMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…