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

Function prod

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

Source from the content-addressed store, hash-verified

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