Return a flat iterator over elements of the data array.
If False then masked and unmasked elements will be returned. By default only unmasked elements are returned
An iterator over elements of the data array.
>>> print d.array [[1 -- 3]] >>> for x in d.flat(): ... print x ... 1 3
>>> for x in d.flat(False): ... print x ... 1 -- 3
cf.Data.expand_dims
cf.Data.flip
Enter search terms or a module, class or function name.