numpy.ndarray.nonzero — NumPy v2.2 Manual (original) (raw)

method

ndarray.nonzero()#

Return the indices of the elements that are non-zero.

Refer to numpy.nonzero for full documentation.