isneginf

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

Test element-wise for negative 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.isneginf(x).todense()
array([ True])

See also

numpy.isneginf

The NumPy equivalent