Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.isposinf

Contents

jax.numpy.isposinf#

jax.numpy.isposinf(x,/,out=None)[source]#

Return boolean array indicating whether each element of input is positive infinite.

JAX implementation ofnumpy.isposinf.

Parameters:

x – input array or scalar.complex dtype are not supported.

Returns:

A boolean array of same shape asx containingTrue wherex isinf, andFalse otherwise.

See also

  • jax.numpy.isinf(): Returns a boolean array indicating whether eachelement of input is either positive or negative infinity.

  • jax.numpy.isneginf(): Returns a boolean array indicating whether eachelement of input is negative infinity.

  • jax.numpy.isfinite(): Returns a boolean array indicating whether eachelement of input is finite.

  • jax.numpy.isnan(): Returns a boolean array indicating whether eachelement of input is not a number (NaN).

Examples

>>>jnp.isposinf(5)Array(False, dtype=bool)>>>x=jnp.array([-jnp.inf,5,jnp.inf,jnp.nan,1])>>>jnp.isposinf(x)Array([False, False,  True, False, False], dtype=bool)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp