isneginf

sparse.isneginf(x, out=None)[source]

Test element-wise for negative infinity, return result as sparse bool array.

Parameters
  • x – Input

  • optional (out,) – Output array

Examples

>>> import sparse
>>> x = sparse.as_coo(np.array([-np.inf]))
>>> sparse.isneginf(x).todense()
array([ True])

See also

numpy.isneginf()

The NumPy equivalent