| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/../generated/numpy.iscomplex.html | [Back] [Original] |
Returns a bool array, where True if input element is complex.
What is tested is whether the input has a non-zero imaginary part, not if the input type is complex.
Input array.
Output array.
See also
isrealiscomplexobjReturn True if x is a complex type or an array of complex numbers.
Examples
>>> import numpy as np
>>> np.iscomplex([1+1j, 1+0j, 4.5, 3, 2, 2j])
array([ True, False, False, False, False, True])
| Web Proxy Viewer | New URL | Original Page |