Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2005-08-07 02:30:17
Size: 465
Editor: flyaflya
Comment:
Revision 7 as of 2006-05-16 14:24:36
Size: 543
Editor: ZhangYunfeng
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from NumericalPython
Line 2: Line 3:
##language:zh #language zh
Line 4: Line 5:
'''
含有章节索引的中文 文章模板
'''
Line 8: Line 6:
::-- flyaflya [[[DateTime(2005-08-07T02:30:17Z)]]]
Line 10: Line 7:
= Numerical Python =
''简述''

== 章标题1 ==
= Numeric =
== 简介 ==
Line 14: Line 10:
=== 小节标题1 ===
{{{
#!python
Python code
}}}
又称为NumericalPython
Line 20: Line 12:
==== 次节标题1 ====
xxx
提供对序列(主要是矩阵)的快速操作
== 例子 ==
>>> import Numeric as N
Line 23: Line 16:
== 章标题2 == >>> a = [[0,0,1,1,0],[1,1,0,0,1],[0,0,1,0,1]]
Line 25: Line 18:
=== 小节标题2 ===
{{{
其它
代码引用
}}}
>>> N.where(a, 100,99)
Line 31: Line 20:
==== 次节标题2 ====
yyy
array([[ 99, 99, 100, 100, 99],
       [100, 100, 99, 99, 100],
       [ 99, 99, 100, 99, 100]])

== 函数 ==
=== take ===
取出矩阵的几行或几列

TableOfContents

1. Numeric

1.1. 简介

又称为NumericalPython

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

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

取出矩阵的几行或几列

Numeric (last edited 2009-12-25 07:14:33 by localhost)