Shows which elements of the input are positive infinity.
Returns a numpy array resulting from an elementwise test for positive infinity.
Parameters:  x : array_like
y : array_like


Returns:  y : ndarray

See also
Notes
Numpy uses the IEEE Standard for Binary FloatingPoint for Arithmetic (IEEE 754). This means that Not a Number is not equivalent to infinity. Also that positive infinity is not equivalent to negative infinity. But infinity is equivalent to positive infinity.
Errors result if second argument is also supplied with scalar input or if first and second arguments have different shapes.
Numpy’s definitions for positive infinity (PINF) and negative infinity (NINF) may be change in the future versions.
Examples
>>> np.isposinf(np.PINF)
array(True, dtype=bool)
>>> np.isposinf(np.inf)
array(True, dtype=bool)
>>> np.isposinf(np.NINF)
array(False, dtype=bool)
>>> np.isposinf([np.inf, 0., np.inf])
array([False, False, True], dtype=bool)
>>> x=np.array([np.inf, 0., np.inf])
>>> y=np.array([2,2,2])
>>> np.isposinf(x,y)
array([1, 0, 0])
>>> y
array([1, 0, 0])