numpy.ma.MaskType.nonzero

method

ma.MaskType.nonzero()

Scalar method identical to the corresponding array attribute.

Please see ndarray.nonzero.