You are viewing an older version (2.4.3).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / ma / core / MaskedArray / iscontiguous

function

numpy.ma.core:MaskedArray.iscontiguous

source: /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