numpy.ma.ravel(self, order='C') =
Returns a 1D version of self, as a view.
Parameters: |
order : {‘C’, ‘F’, ‘A’, ‘K’}, optional The elements of |
---|---|
Returns: |
MaskedArray Output view is of shape |
>>> x = np.ma.array([[1,2,3],[4,5,6],[7,8,9]], mask=[0] + [1,0]*4) >>> print(x) [[1 -- 3] [-- 5 --] [7 -- 9]] >>> print(x.ravel()) [1 -- 3 -- 5 -- 7 -- 9]
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.ma.ravel.html