dpnp.isinf
- dpnp.isinf(x1, out=None, **kwargs)[source]
Test element-wise for positive or negative infinity.
For full documentation refer to
numpy.isinf
.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.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.
dpnp.isfinite
Test element-wise for finiteness.
Examples
>>> import numpy >>> import dpnp as np >>> x = np.array([-numpy.inf, 0., numpy.inf]) >>> out = np.isinf(x) >>> [i for i in out] [True, False, True]