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

jax.numpy.isnan — JAX documentation

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

Returns a boolean array indicating whether each element of input is NaN.

JAX implementation of numpy.isnan.

Parameters:

x (ArrayLike) – input array or scalar.

Returns:

A boolean array of same shape as x containing True where x is not a number (i.e. NaN) and False otherwise.

Return type:

Array

See also

Examples

>>> jnp.isnan(6)
Array(False, dtype=bool, weak_type=True)
>>> x = jnp.array([2, 1+4j, jnp.inf, jnp.nan])
>>> jnp.isnan(x)
Array([False, False, False,  True], 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.4