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

function

numpy.ma.core:ids

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