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 / unshare_mask

function

numpy.ma.core:MaskedArray.unshare_mask

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

Signature

def unshare_mask(self)

Summary

Copy the mask and set the sharedmask flag to False.

Extended Summary

Whether the mask is shared between masked arrays can be seen from the sharedmask property. unshare_mask ensures the mask is not shared. A copy of the mask is only made if it was shared.

See also

sharedmask

Aliases

  • numpy.ma.MaskedArray.unshare_mask