real¶
- real(x: array, /) array ¶
Returns the real component of a complex number for each element
x_i
of the input arrayx
.- Parameters:
x (array) – input array. Should have a complex floating-point data type.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a floating-point data type with the same floating-point precision as
x
(e.g., ifx
iscomplex64
, the returned array must have the floating-point data typefloat32
).
Notes
New in version 2022.12.