陣列

陣列#

array(*args, **kwargs)

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 tuple 表示的陣列形狀。

array.size

陣列中的元素數量。

array.real

複數陣列的實部。

array.imag

複數陣列的虛部。

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.logcumsumexp(self[, axis, reverse, ...])

請參見 logcumsumexp()

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(),但軸可用 tuple 或分開參數傳入。

array.T

等同於呼叫 self.transpose() 且不帶參數。

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

請參見 var()

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

請參見 view()