jax.numpy.isfinite

jax.numpy.isfinite(x)[source]

Test element-wise for finiteness (not infinity or not Not a Number).

LAX-backend implementation of isfinite().

Original docstring below.

The result is returned as a boolean array.

Parameters

x (array_like) – Input values.

Returns

y – True where x is not positive infinity, negative infinity, or NaN; false otherwise. This is a scalar if x is a scalar.

Return type

ndarray, bool