-
flatiter.copy()
-
Get a copy of the iterator as a 1-D array.
Examples
>>> x = np.arange(6).reshape(2, 3) >>> x array([[0, 1, 2], [3, 4, 5]]) >>> fl = x.flat >>> fl.copy() array([0, 1, 2, 3, 4, 5])
flatiter.copy()
2017-01-10 18:08:34
flatiter.copy()
Get a copy of the iterator as a 1-D array.
>>> x = np.arange(6).reshape(2, 3) >>> x array([[0, 1, 2], [3, 4, 5]]) >>> fl = x.flat >>> fl.copy() array([0, 1, 2, 3, 4, 5])
Please login to continue.