jax.numpy.iscomplexobj#

jax.numpy.iscomplexobj(x)[source]#

Check for a complex type or an array of complex numbers.

LAX-backend implementation of numpy.iscomplexobj().

Original docstring below.

The type of the input is checked, not the value. Even if the input has an imaginary part equal to zero, iscomplexobj evaluates to True.

Parameters

x (any) – The input can be of any type and shape.

Returns

iscomplexobj – The return value, True if x is of a complex type or has at least one complex element.

Return type

bool