numpy.matrix.nonzero#

method

matrix.nonzero()#

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

Refer tonumpy.nonzero for full documentation.

See also

numpy.nonzero

equivalent function

On this page