cumprod

ivy.cumprod(x: Union[ivy.Array, ivy.NativeArray], axis: int = 0, exclusive: bool = False, f: Optional[ivy.Framework] = None) → Union[ivy.Array, ivy.NativeArray][source]

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

Parameters
  • 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.

Returns

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