cupy.cumprod#
- cupy.cumprod(a, axis=None, dtype=None, out=None)[source]#
Returns the cumulative product of an array along a given axis.
- Parameters:
a (cupy.ndarray) – Input array.
axis (int) – Axis along which the cumulative product is taken. If it is not specified, the input is flattened.
dtype – Data type specifier.
out (cupy.ndarray) – Output array.
- Returns:
The result array.
- Return type:
See also