This is a pre-release version (2.5.0.dev0+git20251130.2de293a).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / MaskedArray / iscontiguous

function

numpy.ma.core:MaskedArray.iscontiguous

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py:4948

Signature

def iscontiguous(self)

Summary

Return a boolean indicating whether the data is contiguous.

Parameters

None

Examples

import numpy as np
x = np.ma.array([1, 2, 3])
x.iscontiguous()
`iscontiguous` returns one of the flags of the masked array:
x.flags

Aliases

  • numpy.ma.MaskedArray.iscontiguous