mlx.core.real

Contents

mlx.core.real#

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

Returns the real part of a complex array.

Parameters:

a (array) – Input array.

Returns:

The real part of a.

Return type:

array