jax.numpy.isrealobj

Contents

jax.numpy.isrealobj#

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

Return True if x is a not complex type or an array of complex numbers.

LAX-backend implementation of numpy.isrealobj().

Original docstring below.

The type of the input is checked, not the value. So even if the input has an imaginary part equal to zero, isrealobj evaluates to False if the data type is complex.

Parameters:

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

Returns:

y – The return value, False if x is of a complex type.

Return type:

bool