-
MaskedArray.ids()
[source] -
Return the addresses of the data and mask areas.
Parameters: None Examples
123>>> x
=
np.ma.array([
1
,
2
,
3
], mask
=
[
0
,
1
,
1
])
>>> x.ids()
(
166670640
,
166659832
)
If the array has no mask, the address of
nomask
is returned. This address is typically not close to the data in memory:123>>> x
=
np.ma.array([
1
,
2
,
3
])
>>> x.ids()
(
166691080
,
3083169284L
)
MaskedArray.ids()

2025-01-10 15:47:30
Please login to continue.