ivy.cumprod(x, axis=0, exclusive=False, f=None)[source]

Returns the cumulative product of the elements along a given axis.

  • x (array) – Input array.

  • axis (int) – Axis along which the cumulative product is computed. By default 0.

  • exclusive (bool, optional) – Whether to perform the cumprod exclusively. Defaults is False.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.


Input array with cumulatively multiplied elements along axis.

Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty