8.5.40.30. nonzero

Array.nonzero()

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

Refer to numpy.nonzero for full documentation.

8.5.40.30. See Also

numpy.nonzero : equivalent function