dpnp.isfinite
- dpnp.isfinite(x1, out=None, **kwargs)[source]
Test element-wise for finiteness (not infinity or not Not a Number).
For full documentation refer to
numpy.isfinite
.Limitations
Input array is supported as
dpnp.ndarray
. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types. Parameterout
is supported only with default valueNone
. Parameterwhere
is supported only with default valueTrue
.See also
dpnp.isinf
Test element-wise for positive or negative infinity.
dpnp.isneginf
Test element-wise for negative infinity, return result as bool array.
dpnp.isposinf
Test element-wise for positive infinity, return result as bool array.
dpnp.isnan
Test element-wise for NaN and return result as a boolean array.
Notes
Not a Number, positive infinity and negative infinity are considered to be non-finite.
Examples
>>> import numpy >>> import dpnp as np >>> x = np.array([-numpy.inf, 0., numpy.inf]) >>> out = np.isfinite(x) >>> [i for i in out] [False, True, False]