python库--numpy
安装
pip install numpy
numpy部分函数介绍
np.array()
np.zeros()
np.ones()
mat1.shape, mat1.size
2 * mat1
mat1.T
mat1.dot(mat2)
mat1*mat2
2+mat1
mat1.transpose(0,2,1)
mat1+mat2 ----broad cast
np.random.randn(5,10) ----正态分布
np.random.shuffle() ----打乱
np.sum()
np.sum(mat1,axis=1)
np.exp(mat1)
np.argmax(mat1)