sumprod.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:cupy 作者: cupy 项目源码 文件源码
def cumsum(a, axis=None, dtype=None, out=None):
    """Returns the cumulative sum of an array along a given axis.

    Args:
        a (cupy.ndarray): Input array.
        axis (int): Axis along which the cumulative sum 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.cumsum`

    """
    return _cum_core(a, axis, dtype, out, _cumsum_kern, _cumsum_batch_kern)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号