jax.lax.real#
- jax.lax.real(x)[source]#
Elementwise extract real part: \(\mathrm{Re}(x)\).
This function lowers directly to the stablehlo.real operation.
- Parameters:
x (ArrayLike) – input array. Must have complex dtype.
- Returns:
Array of the same shape as
xcontaining its real part. Will have dtype float32 ifx.dtype == complex64, or float64 ifx.dtype == complex128.- Return type:
See also
jax.lax.complex(): elementwise construct complex number.jax.lax.imag(): elementwise extract imaginary part.jax.lax.conj(): elementwise complex conjugate.