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

function

numpy.ma.core:MaskedArray.imag

source: build-install/usr/lib/python3.14/site-packages/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