dpnp.isinf
- dpnp.isinf(x, out=None, where=True, order='K', dtype=None, subok=True, **kwargs)
- Tests each element \(x_i\) of the input array x to determine if equal to positive or negative infinity. - For full documentation refer to - numpy.isinf.- Parameters:
- x ({dpnp.ndarray, usm_ndarray}) -- Input array, may have any data type. 
- out ({None, dpnp.ndarray, usm_ndarray}, optional) -- - Output array to populate. Array must have the correct shape and the expected data type. - Default: - None.
- order ({None, "C", "F", "A", "K"}, optional) -- - Memory layout of the newly output array, if parameter out is - None.- Default: - "K".
 
- Returns:
- out -- An array which is True where x is positive or negative infinity, False otherwise. 
- Return type:
- dpnp.ndarray of bool dtype 
 - Limitations - Parameters where and subok are supported with their default values. Otherwise - NotImplementedErrorexception will be raised.- 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 dpnp as np >>> x = np.array([-np.inf, 0., np.inf]) >>> np.isinf(x) array([ True, False, True])