码迷,mamicode.com
首页 > 其他好文 > 详细

numpy之sum

时间:2016-10-26 19:18:50      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:form   otto   app   modified   mon   from   instead   elements   mil   

Definition : sum(a, axis=None, dtype=None, out=None, keepdims=False)

axis: None or int or tuple of ints, optional

Axis or axes along which a sum is performed. The default, axis=None, will sum all of the elements of the input array. If axis is negative it counts from the last to the first axis.

New in version 1.7.0.

If axis is a tuple of ints, a sum is performed on all of the axes specified in the tuple instead of a single axis or all the axes as before.

 

numpy之sum

标签:form   otto   app   modified   mon   from   instead   elements   mil   

原文地址:http://www.cnblogs.com/ylHe/p/6001239.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!