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

function

numpy.ma.core:MaskedArray.real

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