A RetroSearch Logo

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

Search Query:

Showing content from https://docs.jax.dev/en/latest/_autosummary/jax.numpy.iscomplexobj.html below:

jax.numpy.iscomplexobj — JAX documentation

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

Check if the input is a complex number or an array containing complex elements.

JAX implementation of numpy.iscomplexobj().

The function evaluates based on input type rather than value. Inputs with zero imaginary parts are still considered complex.

Parameters:

x (Any) – input object to check.

Returns:

True if x is a complex number or an array containing at least one complex element, False otherwise.

Return type:

bool

Examples

>>> jnp.iscomplexobj(True)
False
>>> jnp.iscomplexobj(0)
False
>>> jnp.iscomplexobj(jnp.array([1, 2]))
False
>>> jnp.iscomplexobj(1+2j)
True
>>> jnp.iscomplexobj(jnp.array([0, 1+2j]))
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