原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.copy.html
校对:(虚位以待)
numpy.ma.
copy
(self, *args, **params) a.copy(order='C') = <numpy.ma.core._frommethod instance>返回数组的副本。
参数: | 订单:{'C','F','A','K'},可选
|
---|
例子
>>> x = np.array([[1,2,3],[4,5,6]], order='F')
>>> y = x.copy()
>>> x.fill(0)
>>> x
array([[0, 0, 0],
[0, 0, 0]])
>>> y
array([[1, 2, 3],
[4, 5, 6]])
>>> y.flags['C_CONTIGUOUS']
True