- class cupy.flatiter(a)¶
Flat iterator object to iterate over arrays.
A flatiter iterator is returned by
x.flatfor any array
x. It allows iterating over the array as if it were a 1-D array, either in a for-loop or by calling its
Iteration is done in row-major, C-style order (the last index varying the fastest).
base (cupy.ndarray) – A reference to the array that is iterated over.
Restricted support of basic slicing is currently supplied. Advanced indexing is not supported yet.
- __setitem__(ind, value)¶
Get a copy of the iterator as a 1-D array.
- __eq__(value, /)¶
- __ne__(value, /)¶
- __lt__(value, /)¶
- __le__(value, /)¶
- __gt__(value, /)¶
- __ge__(value, /)¶
A reference to the array that is iterated over.