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

Method prod

dask/array/core.py:2629–2647  ·  view source on GitHub ↗

Return the product of the array elements over the given axis Refer to :func:`dask.array.prod` for full documentation. See Also -------- dask.array.prod : equivalent function

(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None)

Source from the content-addressed store, hash-verified

2627 return trace(self, offset=offset, axis1=axis1, axis2=axis2, dtype=dtype)
2628
2629 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2630 """Return the product of the array elements over the given axis
2631
2632 Refer to :func:`dask.array.prod` for full documentation.
2633
2634 See Also
2635 --------
2636 dask.array.prod : equivalent function
2637 """
2638 from dask.array.reductions import prod
2639
2640 return prod(
2641 self,
2642 axis=axis,
2643 dtype=dtype,
2644 keepdims=keepdims,
2645 split_every=split_every,
2646 out=out,
2647 )
2648
2649 def mean(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2650 """Returns the average of the array elements along given axis.

Callers 15

apply_gufuncFunction · 0.45
setitemFunction · 0.45
_repr_html_Method · 0.45
_vindexMethod · 0.45
_compute_multiplierFunction · 0.45
auto_chunksFunction · 0.45
unify_chunksFunction · 0.45
_vindex_arrayFunction · 0.45
sizeMethod · 0.45
reshape_rechunkFunction · 0.45
reshape_blockwiseFunction · 0.45
einsumFunction · 0.45

Calls 1

prodFunction · 0.90

Tested by

no test coverage detected