MCPcopy
hub / github.com/dask/dask / prod

Method prod

dask/array/core.py:2623–2641  ·  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

2621 return trace(self, offset=offset, axis1=axis1, axis2=axis2, dtype=dtype)
2622
2623 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2624 """Return the product of the array elements over the given axis
2625
2626 Refer to :func:`dask.array.prod` for full documentation.
2627
2628 See Also
2629 --------
2630 dask.array.prod : equivalent function
2631 """
2632 from dask.array.reductions import prod
2633
2634 return prod(
2635 self,
2636 axis=axis,
2637 dtype=dtype,
2638 keepdims=keepdims,
2639 split_every=split_every,
2640 out=out,
2641 )
2642
2643 def mean(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2644 """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

Calls 1

prodFunction · 0.90

Tested by

no test coverage detected