This repository has been archived by the owner on May 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
routines.array-manipulation.html
274 lines (272 loc) · 22.8 KB
/
routines.array-manipulation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<h1><span class="yiyi-st" id="yiyi-23">Array manipulation routines</span></h1>
<blockquote>
<p>原文:<a href="https://docs.scipy.org/doc/numpy/reference/routines.array-manipulation.html">https://docs.scipy.org/doc/numpy/reference/routines.array-manipulation.html</a></p>
<p>译者:<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
<p>校对:(虚位以待)</p>
</blockquote>
<div class="section" id="basic-operations">
<h2><span class="yiyi-st" id="yiyi-24">Basic operations</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-25"><a class="reference internal" href="generated/numpy.copyto.html#numpy.copyto" title="numpy.copyto"><code class="xref py py-obj docutils literal"><span class="pre">copyto</span></code></a>(dst,src [,casting,where])</span></td>
<td><span class="yiyi-st" id="yiyi-26">将值从一个数组复制到另一个,必要时进行广播。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="changing-array-shape">
<h2><span class="yiyi-st" id="yiyi-27">Changing array shape</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-28"><a class="reference internal" href="generated/numpy.reshape.html#numpy.reshape" title="numpy.reshape"><code class="xref py py-obj docutils literal"><span class="pre">reshape</span></code></a>(a,newshape [,order])</span></td>
<td><span class="yiyi-st" id="yiyi-29">为数组提供新形状,而不更改其数据。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-30"><a class="reference internal" href="generated/numpy.ravel.html#numpy.ravel" title="numpy.ravel"><code class="xref py py-obj docutils literal"><span class="pre">ravel</span></code></a>(a [,order])</span></td>
<td><span class="yiyi-st" id="yiyi-31">返回一个连续的扁平数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-32"><a class="reference internal" href="generated/numpy.ndarray.flat.html#numpy.ndarray.flat" title="numpy.ndarray.flat"><code class="xref py py-obj docutils literal"><span class="pre">ndarray.flat</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-33">数组上的1-D迭代器。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-34"><a class="reference internal" href="generated/numpy.ndarray.flatten.html#numpy.ndarray.flatten" title="numpy.ndarray.flatten"><code class="xref py py-obj docutils literal"><span class="pre">ndarray.flatten</span></code></a>([order])</span></td>
<td><span class="yiyi-st" id="yiyi-35">将折叠的数组的副本返回到一个维度。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="transpose-like-operations">
<h2><span class="yiyi-st" id="yiyi-36">Transpose-like operations</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-37"><a class="reference internal" href="generated/numpy.moveaxis.html#numpy.moveaxis" title="numpy.moveaxis"><code class="xref py py-obj docutils literal"><span class="pre">moveaxis</span></code></a>(a,源,目标)</span></td>
<td><span class="yiyi-st" id="yiyi-38">将数组的轴移动到新位置。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-39"><a class="reference internal" href="generated/numpy.rollaxis.html#numpy.rollaxis" title="numpy.rollaxis"><code class="xref py py-obj docutils literal"><span class="pre">rollaxis</span></code></a>(a,axis [,start])</span></td>
<td><span class="yiyi-st" id="yiyi-40">向后滚动指定的轴,直到它位于给定位置。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-41"><a class="reference internal" href="generated/numpy.swapaxes.html#numpy.swapaxes" title="numpy.swapaxes"><code class="xref py py-obj docutils literal"><span class="pre">swapaxes</span></code></a>(a,axis1,axis2)</span></td>
<td><span class="yiyi-st" id="yiyi-42">交换数组的两个轴。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-43"><a class="reference internal" href="generated/numpy.ndarray.T.html#numpy.ndarray.T" title="numpy.ndarray.T"><code class="xref py py-obj docutils literal"><span class="pre">ndarray.T</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-44">与self.transpose()相同,除非self是self.ndim返回</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-45"><a class="reference internal" href="generated/numpy.transpose.html#numpy.transpose" title="numpy.transpose"><code class="xref py py-obj docutils literal"><span class="pre">transpose</span></code></a>(a [,axes])</span></td>
<td><span class="yiyi-st" id="yiyi-46">允许数组的尺寸。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="changing-number-of-dimensions">
<h2><span class="yiyi-st" id="yiyi-47">Changing number of dimensions</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-48"><a class="reference internal" href="generated/numpy.atleast_1d.html#numpy.atleast_1d" title="numpy.atleast_1d"><code class="xref py py-obj docutils literal"><span class="pre">atleast_1d</span></code></a>(\ * arys)</span></td>
<td><span class="yiyi-st" id="yiyi-49">将输入转换为具有至少一个维度的数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-50"><a class="reference internal" href="generated/numpy.atleast_2d.html#numpy.atleast_2d" title="numpy.atleast_2d"><code class="xref py py-obj docutils literal"><span class="pre">atleast_2d</span></code></a>(\ * arys)</span></td>
<td><span class="yiyi-st" id="yiyi-51">将输入视为具有至少两个维度的数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-52"><a class="reference internal" href="generated/numpy.atleast_3d.html#numpy.atleast_3d" title="numpy.atleast_3d"><code class="xref py py-obj docutils literal"><span class="pre">atleast_3d</span></code></a>(\ * arys)</span></td>
<td><span class="yiyi-st" id="yiyi-53">将输入视为至少包含三个维度的数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-54"><a class="reference internal" href="generated/numpy.broadcast.html#numpy.broadcast" title="numpy.broadcast"><code class="xref py py-obj docutils literal"><span class="pre">broadcast</span></code></a></span></td>
<td><span class="yiyi-st" id="yiyi-55">产生模仿广播的对象。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-56"><a class="reference internal" href="generated/numpy.broadcast_to.html#numpy.broadcast_to" title="numpy.broadcast_to"><code class="xref py py-obj docutils literal"><span class="pre">broadcast_to</span></code></a>(array,shape [,subbok])</span></td>
<td><span class="yiyi-st" id="yiyi-57">将数组广播到新形状。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-58"><a class="reference internal" href="generated/numpy.broadcast_arrays.html#numpy.broadcast_arrays" title="numpy.broadcast_arrays"><code class="xref py py-obj docutils literal"><span class="pre">broadcast_arrays</span></code></a>(\ * args,\ * \ * kwargs)</span></td>
<td><span class="yiyi-st" id="yiyi-59">相互之间广播任意数量的数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-60"><a class="reference internal" href="generated/numpy.expand_dims.html#numpy.expand_dims" title="numpy.expand_dims"><code class="xref py py-obj docutils literal"><span class="pre">expand_dims</span></code></a>(a,axis)</span></td>
<td><span class="yiyi-st" id="yiyi-61">展开数组的形状。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-62"><a class="reference internal" href="generated/numpy.squeeze.html#numpy.squeeze" title="numpy.squeeze"><code class="xref py py-obj docutils literal"><span class="pre">squeeze</span></code></a>(a [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-63">从数组的形状中删除单维条目。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="changing-kind-of-array">
<h2><span class="yiyi-st" id="yiyi-64">Changing kind of array</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-65"><a class="reference internal" href="generated/numpy.asarray.html#numpy.asarray" title="numpy.asarray"><code class="xref py py-obj docutils literal"><span class="pre">asarray</span></code></a>(a [,dtype,order])</span></td>
<td><span class="yiyi-st" id="yiyi-66">将输入转换为数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-67"><a class="reference internal" href="generated/numpy.asanyarray.html#numpy.asanyarray" title="numpy.asanyarray"><code class="xref py py-obj docutils literal"><span class="pre">asanyarray</span></code></a>(a [,dtype,order])</span></td>
<td><span class="yiyi-st" id="yiyi-68">将输入转换为ndarray,但传递ndarray子类。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-69"><a class="reference internal" href="generated/numpy.asmatrix.html#numpy.asmatrix" title="numpy.asmatrix"><code class="xref py py-obj docutils literal"><span class="pre">asmatrix</span></code></a>(data [,dtype])</span></td>
<td><span class="yiyi-st" id="yiyi-70">将输入解释为矩阵。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-71"><a class="reference internal" href="generated/numpy.asfarray.html#numpy.asfarray" title="numpy.asfarray"><code class="xref py py-obj docutils literal"><span class="pre">asfarray</span></code></a>(a [,dtype])</span></td>
<td><span class="yiyi-st" id="yiyi-72">返回一个转换为float类型的数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-73"><a class="reference internal" href="generated/numpy.asfortranarray.html#numpy.asfortranarray" title="numpy.asfortranarray"><code class="xref py py-obj docutils literal"><span class="pre">asfortranarray</span></code></a>(a [,dtype])</span></td>
<td><span class="yiyi-st" id="yiyi-74">返回在Fortran中排列的数组在内存中的顺序。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-75"><a class="reference internal" href="generated/numpy.ascontiguousarray.html#numpy.ascontiguousarray" title="numpy.ascontiguousarray"><code class="xref py py-obj docutils literal"><span class="pre">ascontiguousarray</span></code></a>(a [,dtype])</span></td>
<td><span class="yiyi-st" id="yiyi-76">返回内存中的连续数组(C order)。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-77"><a class="reference internal" href="generated/numpy.asarray_chkfinite.html#numpy.asarray_chkfinite" title="numpy.asarray_chkfinite"><code class="xref py py-obj docutils literal"><span class="pre">asarray_chkfinite</span></code></a>(a [,dtype,order])</span></td>
<td><span class="yiyi-st" id="yiyi-78">将输入转换为数组,检查NaN或Infs。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-79"><a class="reference internal" href="generated/numpy.asscalar.html#numpy.asscalar" title="numpy.asscalar"><code class="xref py py-obj docutils literal"><span class="pre">asscalar</span></code></a>(a)</span></td>
<td><span class="yiyi-st" id="yiyi-80">将大小为1的数组转换为其标量等效值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-81"><a class="reference internal" href="generated/numpy.require.html#numpy.require" title="numpy.require"><code class="xref py py-obj docutils literal"><span class="pre">require</span></code></a>(a [,dtype,requirements])</span></td>
<td><span class="yiyi-st" id="yiyi-82">返回满足要求的所提供类型的数组。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="joining-arrays">
<h2><span class="yiyi-st" id="yiyi-83">Joining arrays</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-84"><a class="reference internal" href="generated/numpy.concatenate.html#numpy.concatenate" title="numpy.concatenate"><code class="xref py py-obj docutils literal"><span class="pre">concatenate</span></code></a>((a1,a2,...)[,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-85">沿现有轴连接数组序列。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-86"><a class="reference internal" href="generated/numpy.stack.html#numpy.stack" title="numpy.stack"><code class="xref py py-obj docutils literal"><span class="pre">stack</span></code></a>(arrays [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-87">沿着新轴连接数组的序列。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-88"><a class="reference internal" href="generated/numpy.column_stack.html#numpy.column_stack" title="numpy.column_stack"><code class="xref py py-obj docutils literal"><span class="pre">column_stack</span></code></a>(tup)</span></td>
<td><span class="yiyi-st" id="yiyi-89">将1-D数组作为列堆叠到2-D数组中。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-90"><a class="reference internal" href="generated/numpy.dstack.html#numpy.dstack" title="numpy.dstack"><code class="xref py py-obj docutils literal"><span class="pre">dstack</span></code></a>(tup)</span></td>
<td><span class="yiyi-st" id="yiyi-91">按照深度顺序(沿第三轴)堆叠数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-92"><a class="reference internal" href="generated/numpy.hstack.html#numpy.hstack" title="numpy.hstack"><code class="xref py py-obj docutils literal"><span class="pre">hstack</span></code></a>(tup)</span></td>
<td><span class="yiyi-st" id="yiyi-93">水平(按列顺序)堆叠数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-94"><a class="reference internal" href="generated/numpy.vstack.html#numpy.vstack" title="numpy.vstack"><code class="xref py py-obj docutils literal"><span class="pre">vstack</span></code></a>(tup)</span></td>
<td><span class="yiyi-st" id="yiyi-95">垂直(按行)顺序堆叠数组。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="splitting-arrays">
<h2><span class="yiyi-st" id="yiyi-96">Splitting arrays</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-97"><a class="reference internal" href="generated/numpy.split.html#numpy.split" title="numpy.split"><code class="xref py py-obj docutils literal"><span class="pre">split</span></code></a>(ary,indices_or_sections [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-98">将数组拆分为多个子数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-99"><a class="reference internal" href="generated/numpy.array_split.html#numpy.array_split" title="numpy.array_split"><code class="xref py py-obj docutils literal"><span class="pre">array_split</span></code></a>(ary,indices_or_sections [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-100">将数组拆分为多个子数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-101"><a class="reference internal" href="generated/numpy.dsplit.html#numpy.dsplit" title="numpy.dsplit"><code class="xref py py-obj docutils literal"><span class="pre">dsplit</span></code></a>(ary,indices_or_sections)</span></td>
<td><span class="yiyi-st" id="yiyi-102">将数组沿着第3轴(深度)拆分成多个子数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-103"><a class="reference internal" href="generated/numpy.hsplit.html#numpy.hsplit" title="numpy.hsplit"><code class="xref py py-obj docutils literal"><span class="pre">hsplit</span></code></a>(ary,indices_or_sections)</span></td>
<td><span class="yiyi-st" id="yiyi-104">将数组水平(逐列)拆分为多个子数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-105"><a class="reference internal" href="generated/numpy.vsplit.html#numpy.vsplit" title="numpy.vsplit"><code class="xref py py-obj docutils literal"><span class="pre">vsplit</span></code></a>(ary,indices_or_sections)</span></td>
<td><span class="yiyi-st" id="yiyi-106">垂直(行方向)将数组拆分成多个子数组。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="tiling-arrays">
<h2><span class="yiyi-st" id="yiyi-107">Tiling arrays</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-108"><a class="reference internal" href="generated/numpy.tile.html#numpy.tile" title="numpy.tile"><code class="xref py py-obj docutils literal"><span class="pre">tile</span></code></a>(A,reps)</span></td>
<td><span class="yiyi-st" id="yiyi-109">通过重复A由reps指定的次数构造数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-110"><a class="reference internal" href="generated/numpy.repeat.html#numpy.repeat" title="numpy.repeat"><code class="xref py py-obj docutils literal"><span class="pre">repeat</span></code></a>(a,重复[,轴])</span></td>
<td><span class="yiyi-st" id="yiyi-111">重复数组的元素。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="adding-and-removing-elements">
<h2><span class="yiyi-st" id="yiyi-112">Adding and removing elements</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-113"><a class="reference internal" href="generated/numpy.delete.html#numpy.delete" title="numpy.delete"><code class="xref py py-obj docutils literal"><span class="pre">delete</span></code></a>(arr,obj [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-114">返回具有沿着轴删除的子数组的新数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-115"><a class="reference internal" href="generated/numpy.insert.html#numpy.insert" title="numpy.insert"><code class="xref py py-obj docutils literal"><span class="pre">insert</span></code></a>(arr,obj,values [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-116">在给定的索引之前沿给定轴插入值。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-117"><a class="reference internal" href="generated/numpy.append.html#numpy.append" title="numpy.append"><code class="xref py py-obj docutils literal"><span class="pre">append</span></code></a>(arr,values [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-118">将值附加到数组的末尾。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-119"><a class="reference internal" href="generated/numpy.resize.html#numpy.resize" title="numpy.resize"><code class="xref py py-obj docutils literal"><span class="pre">resize</span></code></a>(a,new_shape)</span></td>
<td><span class="yiyi-st" id="yiyi-120">返回具有指定形状的新数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-121"><a class="reference internal" href="generated/numpy.trim_zeros.html#numpy.trim_zeros" title="numpy.trim_zeros"><code class="xref py py-obj docutils literal"><span class="pre">trim_zeros</span></code></a>(filt [,trim])</span></td>
<td><span class="yiyi-st" id="yiyi-122">从1-D数组或序列修剪前导和/或尾随零。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-123"><a class="reference internal" href="generated/numpy.unique.html#numpy.unique" title="numpy.unique"><code class="xref py py-obj docutils literal"><span class="pre">unique</span></code></a>(ar [,return_index,return_inverse,...])</span></td>
<td><span class="yiyi-st" id="yiyi-124">查找数组的唯一元素。</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="rearranging-elements">
<h2><span class="yiyi-st" id="yiyi-125">Rearranging elements</span></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%">
<col width="90%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-126"><code class="xref py py-obj docutils literal"><span class="pre">flip</span></code></span></td>
<td></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-127"><a class="reference internal" href="generated/numpy.fliplr.html#numpy.fliplr" title="numpy.fliplr"><code class="xref py py-obj docutils literal"><span class="pre">fliplr</span></code></a>(m)</span></td>
<td><span class="yiyi-st" id="yiyi-128">在左/右方向上翻转数组。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-129"><a class="reference internal" href="generated/numpy.flipud.html#numpy.flipud" title="numpy.flipud"><code class="xref py py-obj docutils literal"><span class="pre">flipud</span></code></a>(m)</span></td>
<td><span class="yiyi-st" id="yiyi-130">在上/下方向上翻转数组。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-131"><a class="reference internal" href="generated/numpy.reshape.html#numpy.reshape" title="numpy.reshape"><code class="xref py py-obj docutils literal"><span class="pre">reshape</span></code></a>(a,newshape [,order])</span></td>
<td><span class="yiyi-st" id="yiyi-132">为数组提供新形状,而不更改其数据。</span></td>
</tr>
<tr class="row-odd"><td><span class="yiyi-st" id="yiyi-133"><a class="reference internal" href="generated/numpy.roll.html#numpy.roll" title="numpy.roll"><code class="xref py py-obj docutils literal"><span class="pre">roll</span></code></a>(a,shift [,axis])</span></td>
<td><span class="yiyi-st" id="yiyi-134">沿给定轴滚动数组元素。</span></td>
</tr>
<tr class="row-even"><td><span class="yiyi-st" id="yiyi-135"><a class="reference internal" href="generated/numpy.rot90.html#numpy.rot90" title="numpy.rot90"><code class="xref py py-obj docutils literal"><span class="pre">rot90</span></code></a>(m [,k])</span></td>
<td><span class="yiyi-st" id="yiyi-136">将数组沿逆时针方向旋转90度。</span></td>
</tr>
</tbody>
</table>
</div>