{ } Raw JSON

bundles / numpy 2.4.4 / numpy / ma / core / MaskedArray / ids

function

numpy.ma.core:MaskedArray.ids

source: /numpy/ma/core.py:4921

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.MaskedArray.ids