Size: 465
Comment:
|
Size: 575
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from NumericalPython | |
Line 4: | Line 5: |
''' 含有章节索引的中文 文章模板 ''' |
|
Line 11: | Line 9: |
''简述'' == 章标题1 == |
== 简介 == 提供对序列(主要是矩阵)的快速操作 == 例子 == >>> import Numeric as N |
Line 14: | Line 14: |
=== 小节标题1 === {{{ #!python Python code }}} |
>>> a = [[0,0,1,1,0],[1,1,0,0,1],[0,0,1,0,1]] |
Line 20: | Line 16: |
==== 次节标题1 ==== xxx |
>>> N.where(a, 100,99) |
Line 23: | Line 18: |
== 章标题2 == | array([[ 99, 99, 100, 100, 99], [100, 100, 99, 99, 100], [ 99, 99, 100, 99, 100]]) |
Line 25: | Line 22: |
=== 小节标题2 === {{{ 其它 代码引用 }}} ==== 次节标题2 ==== yyy |
== 函数 == === take === 取出矩阵的几行或几列 |
::-- 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],
- [100, 100, 99, 99, 100], [ 99, 99, 100, 99, 100]])
1.3. 函数
1.3.1. take
取出矩阵的几行或几列