Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.iscomplexobj

jax.numpy.iscomplexobj#

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

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

JAX implementation ofnumpy.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 ifx 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

[8]ページ先頭

©2009-2025 Movatter.jp