masked_array.all(axis=None,out=None,keepdims=<class numpy._globals._NoValue>)[source]¶Returns True if all elements evaluate to True.
The output array is masked where all the values along the given axisare masked: if the output would have been a scalar and that all thevalues are masked, then the output ismasked.
Refer tonumpy.all for full documentation.
See also
ndarray.allnumpy.allExamples
>>>np.ma.array([1,2,3]).all()True>>>a=np.ma.array([1,2,3],mask=True)>>>(a.all()isnp.ma.masked)True