Back to Numerical Arrays (NumPy)
np.cumulative_prod
Return the cumulative product of array elements.
Syntax
np.cumulative_prod(x, axis?, dtype?, _include_initial?)
Description
Return the cumulative product of array elements. NumPy 2.0 alias for cumprod with include_initial support.
Parameters
| Name | Description |
|---|---|
| x | - Input array |
| axis(optional) | - Axis along which to compute. Default: 0 |
| dtype(optional) | - Type of output array |
| _include_initial(optional) | boolean |
Returns
Promise<NDArray>