::-- flyaflya [DateTime(2005-08-07T02:30:26Z)] TableOfContents

1. Numerical Python

1.1. 简介

提供对序列(主要是矩阵)的快速操作

1.2. 例子

>>> import Numeric as N

>>> a = 0,0,1,1,0],[1,1,0,0,1],[0,0,1,0,1

>>> N.where(a, 100,99)

array([[ 99, 99, 100, 100, 99],

1.3. 函数

1.3.1. take

取出矩阵的几行或几列