SciPy

This is documentation for an old release of NumPy (version 1.17.0). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.ma.MaskedArray.iscontiguous

method

MaskedArray.iscontiguous(self)[source]

Return a boolean indicating whether the data is contiguous.

Parameters:
None

Examples

>>>
>>> x = np.ma.array([1, 2, 3])
>>> x.iscontiguous()
True

iscontiguous returns one of the flags of the masked array:

>>>
>>> x.flags
  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  WRITEBACKIFCOPY : False
  UPDATEIFCOPY : False

Previous topic

numpy.ma.MaskedArray.ids

Next topic

numpy.ma.MaskedArray.__copy__