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.isinf.html below:

jax.numpy.isinf — JAX documentation

jax.numpy.isinf#
jax.numpy.isinf(x, /)[source]#

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

JAX implementation of numpy.isinf.

Parameters:

x (ArrayLike) – input array or scalar.

Returns:

A boolean array of same shape as x containing True where x is inf or -inf, and False otherwise.

Return type:

Array

See also

Examples

>>> jnp.isinf(jnp.inf)
Array(True, dtype=bool)
>>> x = jnp.array([2+3j, -jnp.inf, 6, jnp.inf, jnp.nan])
>>> jnp.isinf(x)
Array([False,  True, False,  True, False], dtype=bool)

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.3