jax.numpy.real#

jax.numpy.real(val, /)[source]#

Return the real part of the complex argument.

LAX-backend implementation of numpy.real().

Original docstring below.

Parameters

val (array_like) – Input array.

Returns

out – The real component of the complex argument. If val is real, the type of val is used for the output. If val has complex elements, the returned type is float.

Return type

ndarray or scalar