1
pimin 2016-06-23 01:17:59 +08:00
NumPy
|
2
debiann 2016-06-23 01:21:51 +08:00 via iPhone
|
3
Geoion 2016-06-23 01:21:58 +08:00 via Android
做数学怎么能不知道 scipy 呢?
|
4
practicer 2016-06-23 08:14:05 +08:00
import numpy as np
>>> np.sum([[0, 1], [0, 5]]) 6 |
5
jinxueliu 2016-06-24 13:49:03 +08:00
向量的计算还是用 Numpy 吧
|
6
necomancer 2016-08-01 13:13:50 +08:00
In [1]: import numpy as np
In [2]: a = array([[1,2,3],[2,2,3]]) ...: In [3]: np.sum(a, axis = 0) Out[3]: array([3, 4, 6]) |