copyto (DST)、SRC [, casting, where] )
copyto
将值从一个数组复制到另一个数组,必要时进行广播。
shape (a)
shape
返回数组的形状。
reshape \(A,新闻形状[, order] )
reshape
在不更改数组数据的情况下为数组赋予新形状。
ravel (a) [, order] )
ravel
返回一个连续的扁平数组。
ndarray.flat
数组上的一维迭代器。
ndarray.flatten \ [order] )
ndarray.flatten
返回折叠为一维的数组的副本。
moveaxis \(A,源,目的地)
moveaxis
将数组的轴移动到新位置。
rollaxis \(a,轴) [, start] )
rollaxis
向后滚动指定轴,直到其位于给定位置。
swapaxes \(A,轴1,轴2)
swapaxes
交换数组的两个轴。
ndarray.T
换位数组。
transpose (a) [, axes] )
transpose
反转或排列数组的轴;返回修改后的数组。
atleast_1d * 阿里斯)
atleast_1d
将输入转换为至少具有一个维度的数组。
atleast_2d * 阿里斯)
atleast_2d
将输入视为至少具有两个维度的数组。
atleast_3d * 阿里斯)
atleast_3d
将输入视为至少具有三维的数组。
broadcast
生成模拟广播的对象。
broadcast_to \(数组,形状[, subok] )
broadcast_to
将数组广播到新形状。
broadcast_arrays * ARGs [, subok] )
broadcast_arrays
相互广播任意数量的数组。
expand_dims \(a,轴)
expand_dims
展开数组的形状。
squeeze (a) [, axis] )
squeeze
从中删除长度为1的轴 a .
asarray (a) [, dtype, order, like] )
asarray
将输入转换为数组。
asanyarray (a) [, dtype, order, like] )
asanyarray
将输入转换为ndarray,但传递ndarray子类。
asmatrix [数据] [, dtype] )
asmatrix
将输入解释为矩阵。
asfarray (a) [, dtype] )
asfarray
返回转换为浮点类型的数组。
asfortranarray (a) [, dtype, like] )
asfortranarray
返回内存中按Fortran顺序排列的数组(ndim>=1)。
ascontiguousarray (a) [, dtype, like] )
ascontiguousarray
返回内存中的连续数组(ndim>=1)(C顺序)。
asarray_chkfinite (a) [, dtype, order] )
asarray_chkfinite
将输入转换为数组,检查是否有NaN或InF。
asscalar (a)
asscalar
将大小为1的数组转换为其标量等效值。
require (a) [, dtype, requirements, like] )
require
返回满足要求的所提供类型的ndarray。
concatenate \ [axis, out, dtype, casting] )
concatenate
沿现有轴联接一系列数组。
stack [数组] [, axis, out] )
stack
沿新轴连接一系列数组。
block [(数组)]
block
从嵌套的块列表中组装nd数组。
vstack (TUP)
vstack
按顺序垂直堆叠数组(按行)。
hstack (TUP)
hstack
按水平顺序(按列)堆叠数组。
dstack (TUP)
dstack
按顺序深度(沿第三轴)堆叠数组。
column_stack (TUP)
column_stack
将一维数组作为列堆叠到二维数组中。
row_stack (TUP)
row_stack
split \(元、索引或节)[, axis] )
split
将数组拆分为多个子数组作为视图 ary .
array_split \(元、索引或节)[, axis] )
array_split
将一个数组拆分为多个子数组。
dsplit \(元、索引或节)
dsplit
沿第三轴(深度)将阵列拆分为多个子阵列。
hsplit \(元、索引或节)
hsplit
将一个数组水平拆分为多个子数组(按列)。
vsplit \(元、索引或节)
vsplit
将一个数组垂直(按行)拆分为多个子数组。
tile (a,Reps')
tile
通过重复reps给出的次数构造数组。
repeat \(A,重复[, axis] )
repeat
重复数组元素。
delete \(ARRObj\) [, axis] )
delete
返回一个新数组,其中子数组沿删除的轴排列。
insert \(arr,obj,值[, axis] )
insert
在给定索引之前沿给定轴插入值。
append \(arr,值[, axis] )
append
将值追加到数组的末尾。
resize \(一个新形状)
resize
返回具有指定形状的新数组。
trim_zeros [菲尔特] [, trim] )
trim_zeros
从一维数组或序列中修剪前导零和/或尾随零。
unique \(AR) [, return_index, return_inverse, ...] )
unique
查找数组的唯一元素。
flip (m) [, axis] )
flip
沿给定轴反转数组中元素的顺序。
fliplr (m)
fliplr
在左/右方向翻转数组。
flipud (m)
flipud
向上/向下翻转数组。
roll (a,移位) [, axis] )
roll
沿给定轴滚动数组元素。
rot90 (m) [, k, axes] )
rot90
在轴指定的平面内将阵列旋转90度。