isposinf¶
-
sparse.
isposinf
(x, out=None)[source]¶ Test element-wise for positive infinity, return result as sparse
bool
array.- Parameters
x – Input
out – Output array
optional – Output array
Examples
>>> import sparse >>> x = sparse.as_coo(np.array([np.inf])) >>> sparse.isposinf(x).todense() array([ True])
See also
numpy.isposinf()
The NumPy equivalent