SciPy

This is documentation for an old release of NumPy (version 1.17). Read this page in the documentation of the latest stable release (version 2.2).

numpy.ma.MaskedArray.real

attribute

MaskedArray.real

The real part of the masked array.

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

See also

imag

Examples

>>>
>>> x = np.ma.array([1+1.j, -2j, 3.45+1.6j], mask=[False, True, False])
>>> x.real
masked_array(data=[1.0, --, 3.45],
             mask=[False,  True, False],
       fill_value=1e+20)

Previous topic

numpy.ma.MaskedArray.imag

Next topic

numpy.ma.MaskedArray.flat