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

Method prod

dask/array/_array_expr/_collection.py:460–478  ·  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

458 )
459
460 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
461 """Return the product of the array elements over the given axis
462
463 Refer to :func:`dask.array.prod` for full documentation.
464
465 See Also
466 --------
467 dask.array.prod : equivalent function
468 """
469 from dask.array.reductions import prod
470
471 return prod(
472 self,
473 axis=axis,
474 dtype=dtype,
475 keepdims=keepdims,
476 split_every=split_every,
477 out=out,
478 )
479
480 def any(self, axis=None, keepdims=False, split_every=None, out=None):
481 """Returns True if any of the elements evaluate to True.

Callers 15

test_sliding_window_viewFunction · 0.45
test_blockviewFunction · 0.45
test_unravel_indexFunction · 0.45
test_nd_ffts_axesFunction · 0.45
test_fftshiftFunction · 0.45
test_fftshift_identityFunction · 0.45
test_reshape_rechunkFunction · 0.45

Calls 1

prodFunction · 0.90

Tested by 15

test_sliding_window_viewFunction · 0.36
test_blockviewFunction · 0.36
test_unravel_indexFunction · 0.36
test_nd_ffts_axesFunction · 0.36
test_fftshiftFunction · 0.36
test_fftshift_identityFunction · 0.36
test_reshape_rechunkFunction · 0.36