cunumeric.imag#

cunumeric.imag(val)#

Return the imaginary part of the complex argument.

Parameters

val (array_like) – Input array.

Returns

out – The imaginary 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

See also

numpy.imag

Availability

Multiple GPUs, Multiple CPUs