dask.array.isreal

dask.array.isreal(*args, **kwargs)

Returns a bool array, where True if input element is real.

This docstring was copied from numpy.isreal.

Some inconsistencies with the Dask version may exist.

If element has complex type with zero complex part, the return value for that element is True.

Parameters
xarray_like (Not supported in Dask)

Input array.

Returns
outndarray, bool

Boolean array of same shape as x.

See also

iscomplex
isrealobj

Return True if x is not a complex type.

Examples

>>> np.isreal([1+1j, 1+0j, 4.5, 3, 2, 2j])  
array([False,  True,  True,  True,  True, False])