numpy.ndarray.__bool__

method

ndarray.__bool__(self, /)

self != 0