parameters: (self)
return_statement: return r
docstring: Returns a 1D version of self, as a view.
  
          Returns
          -------
          MaskedArray
              Output view is of shape ``(self.size,)`` (or
              ``(np.ma.product(self.shape),)``).
  
          Examples
          --------
          >>> 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]
docstring_summary: Returns a 1D version of self, as a view.
docstring_tokens: Returns a 1D version of self as a view .
function: def ravel(self):
          """
          Returns a 1D version of self, as a view.
  
          Returns
          -------
          MaskedArray
              Output view is of shape ``(self.size,)`` (or
              ``(np.ma.product(self.shape),)``).
  
          Examples
          --------
          >>> 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]
  
          """
          r = ndarray.ravel(self._data).view(type(self))
          r._update_from(self)
          if self._mask is not nomask:
              r._mask = ndarray.ravel(self._mask).reshape(r.shape)
          else:
              r._mask = nomask
          return r
function_tokens: def ravel ( self ) : r = ndarray . ravel ( self . _data ) . view ( type ( self ) ) r . _update_from ( self ) if self . _mask is not nomask : r . _mask = ndarray . ravel ( self . _mask ) . reshape ( r . shape ) else : r . _mask = nomask return r