def cumprod(a, axis=None, dtype=None, out=None):
"""Returns the cumulative product of an array along a given axis.
Args:
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:
cupy.ndarray: The result array.
.. seealso:: :func:`numpy.cumprod`
"""
return _cum_core(a, axis, dtype, out, _cumprod_kern, _cumprod_batch_kern)
# TODO(okuta): Implement diff
# TODO(okuta): Implement ediff1d
# TODO(okuta): Implement gradient
# TODO(okuta): Implement cross
# TODO(okuta): Implement trapz
评论列表
文章目录