dask.array.Array.cumprod

Array.cumprod(axis=None, dtype=None, out=None)[source]

This docstring was copied from numpy.ndarray.cumprod.

Some inconsistencies with the Dask version may exist.

Dask added an additional keyword-only argument method.

method{‘sequential’, ‘blelloch’}, optional

Choose which method to use to perform the cumprod. Default is ‘sequential’.

  • ‘sequential’ performs the cumprod of each prior block before the current block.

  • ‘blelloch’ is a work-efficient parallel cumprod. It exposes parallelism by first taking the product of each block and combines the products via a binary tree. This method may be faster or more memory efficient depending on workload, scheduler, and hardware. More benchmarking is necessary.

Return the cumulative product of the elements along the given axis.

Refer to numpy.cumprod for full documentation.

See also

numpy.cumprod

equivalent function