A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.scipy.org/doc/numpy/reference/generated/numpy.iscomplex.html below:

numpy.iscomplex — NumPy v2.3 Manual

numpy.iscomplex#
numpy.iscomplex(x)[source]#

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.

Parameters:
xarray_like

Input array.

Returns:
outndarray of bools

Output array.

See also

isreal
iscomplexobj

Return 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])

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4