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

function

numpy.ma.core:MaskedArray.real

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

Signature

def real(self)

Summary

The real part of the masked array.

Extended Summary

This property is a view on the real part of this MaskedArray.

Examples

import numpy as np
x = np.ma.array([1+1.j, -2j, 3.45+1.6j], mask=[False, True, False])
x.real

See also

imag

Aliases

  • numpy.ma.MaskedArray.get_real