SciPy

numpy.ma.masked_array.flat

attribute

masked_array.flat

Flat version of the array.