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

function

numpy.ma.core:ids

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

Signature

def   ids ( self )

Summary

Return the addresses of the data and mask areas.

Parameters

None

Examples

import numpy as np
x = np.ma.array([1, 2, 3], mask=[0, 1, 1])
x.ids()
If the array has no mask, the address of `nomask` is returned. This address is typically not close to the data in memory:
x = np.ma.array([1, 2, 3])
x.ids()

Aliases

  • numpy.ma.ids