matrix.copy(order='C')¶Return a copy of the array.
| Parameters: | order : {‘C’, ‘F’, ‘A’, ‘K’}, optional
|
|---|
See also
Examples
>>>x=np.array([[1,2,3],[4,5,6]],order='F')
>>>y=x.copy()
>>>x.fill(0)
>>>xarray([[0, 0, 0], [0, 0, 0]])
>>>yarray([[1, 2, 3], [4, 5, 6]])
>>>y.flags['C_CONTIGUOUS']True