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

Function prod

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

Source from the content-addressed store, hash-verified

83
84@derived_from(np)
85def prod(a, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
86 if dtype is not None:
87 dt = dtype
88 else:
89 dt = getattr(np.ones((1,), dtype=a.dtype).prod(), "dtype", object)
90 return reduction(
91 a,
92 chunk.prod,
93 chunk.prod,
94 axis=axis,
95 keepdims=keepdims,
96 dtype=dt,
97 split_every=split_every,
98 out=out,
99 )
100
101
102@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