NumPy

numpy.ma.MaskType.sum

method

MaskType.sum()

Scalar method identical to the corresponding array attribute.

Please see ndarray.sum.