您的位置:首页 > 编程语言 > Python开发

numpy module 2 -- Numpy Tutorial2

2016-07-12 15:42 447 查看


1. More facility indexing

Except integers and slices, array can be indexed by
arrays of integers and
arrays of booleans.

(1)One dim



(2) multi dim



(3) Indexs more than one dim.



(4) broadcast from a num



(5) slice broadcast



(6) Naturally, we can put i1 and
i2 in
a sequence (say a list) and then do the indexing.



(7) However, we can not do this
by putting i1 and
i2 into
an array.



(8) search the max value of time-dependent series



(9) 使用索引赋值



(10) You can use +=.



(11) Indexing with Boolean Arrays



(12) For each dimension of the array we give a
1D boolean array selecting the slices we want.




2. Simple Array Operations

(1) 转置和逆



(2) 单位阵和矩阵相乘



(3) 迹、特征值、解方程

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  numpy