SciPy

numpy.ndarray.__nonzero__

ndarray.__nonzero__

x.__nonzero__() <==> x != 0

Previous topic

numpy.ndarray.__ne__

Next topic

numpy.ndarray.__neg__