mlx.core.imag

Contents

mlx.core.imag#

imag(a: array, /, *, stream: None | Stream | Device = None) array#

Returns the imaginary part of a complex array.

Parameters:

a (array) – Input array.

Returns:

The imaginary part of a.

Return type:

array