MaskedArray.iscontiguous()

MaskedArray.iscontiguous() [source]

Return a boolean indicating whether the data is contiguous.

Parameters: None

Examples

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

iscontiguous returns one of the flags of the masked array:

1
2
3
4
5
6
7
>>> x.flags
  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : False
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
doc_NumPy
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.