numpy.ndarray.__nonzero__

ndarray.__nonzero__

x .__ nonzero __()x!= 0