数组

数组#

array

一个N维数组对象。

array.astype(self, dtype[, stream])

将数组转换为指定类型。

array.at

用于在给定索引处应用更新。

array.item(self)

访问标量数组的值。

array.tolist(self)

将数组转换为Python list

array.dtype

数组的 Dtype

array.itemsize

数组数据类型的大小(以字节为单位)。

array.nbytes

数组中的字节数。

array.ndim

数组的维度。

array.shape

数组的形状,以Python元组表示。

array.size

数组中的元素数量。

array.abs(self, *[, stream])

参见 abs().

array.all(self[, axis, keepdims, stream])

参见 all().

array.any(self[, axis, keepdims, stream])

参见 any().

array.argmax(self[, axis, keepdims, stream])

参见 argmax().

array.argmin(self[, axis, keepdims, stream])

参见 argmin().

array.conj(self, *[, stream])

参见 conj().

array.cos(self, *[, stream])

参见 cos().

array.cummax(self[, axis, reverse, ...])

参见 cummax().

array.cummin(self[, axis, reverse, ...])

参见 cummin().

array.cumprod(self[, axis, reverse, ...])

参见 cumprod().

array.cumsum(self[, axis, reverse, ...])

参见 cumsum().

array.diag(self[, k, stream])

提取对角线或构建对角矩阵。

array.diagonal(self[, offset, axis1, axis2, ...])

参见 diagonal().

array.exp(self, *[, stream])

参见 exp().

array.flatten(self[, start_axis, end_axis, ...])

参见 flatten().

array.log(self, *[, stream])

参见 log().

array.log10(self, *[, stream])

参见 log10().

array.log1p(self, *[, stream])

参见 log1p().

array.log2(self, *[, stream])

参见 log2().

array.logsumexp(self[, axis, keepdims, stream])

参见 logsumexp().

array.max(self[, axis, keepdims, stream])

参见 max().

array.mean(self[, axis, keepdims, stream])

参见 mean().

array.min(self[, axis, keepdims, stream])

参见 min().

array.moveaxis(self, source, destination, *)

参见 moveaxis().

array.prod(self[, axis, keepdims, stream])

参见 prod().

array.reciprocal(self, *[, stream])

参见 reciprocal().

array.reshape(self, *shape[, stream])

等同于 reshape(),但形状可以作为 tuple 或单独的参数传递。

array.round(self[, decimals, stream])

参见 round().

array.rsqrt(self, *[, stream])

参见 rsqrt().

array.sin(self, *[, stream])

参见 sin().

array.split(self, indices_or_sections[, ...])

参见 split().

array.sqrt(self, *[, stream])

参见 sqrt().

array.square(self, *[, stream])

参见 square().

array.squeeze(self[, axis, stream])

参见 squeeze().

array.std(self[, axis, keepdims, ddof, stream])

参见 std().

array.sum(self[, axis, keepdims, stream])

参见 sum().

array.swapaxes(self, axis1, axis2, *[, stream])

参见 swapaxes().

array.transpose(self, *axes[, stream])

等同于 transpose(),但轴可以作为元组或单独的参数传递。

array.T

等同于调用无参数的self.transpose()

array.var(self[, axis, keepdims, ddof, stream])

参见 var().

array.view(self, dtype, *[, stream])

参见 view().