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

function

numpy.ma.core:MaskedArray.imag

source: /numpy/ma/core.py:4537

Signature

def imag(self)

Summary

The imaginary part of the masked array.

Extended Summary

This property is a view on the imaginary 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.imag

See also

real

Aliases

  • numpy.ma.MaskedArray.get_imag