bundles / numpy latest / numpy / ma / core / MaskedArray / all
function
numpy.ma.core:MaskedArray.all
source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py:4976
Signature
def all(self, axis = None, out = None, keepdims = <no value>)Summary
Returns True if all elements evaluate to True.
Extended Summary
The output array is masked where all the values along the given axis are masked: if the output would have been a scalar and that all the values are masked, then the output is masked.
Refer to numpy.all for full documentation.
Examples
import numpy as np np.ma.array([1,2,3]).all() a = np.ma.array([1,2,3], mask=True) (a.all() is np.ma.masked)
See also
- numpy.all
equivalent function
- numpy.ndarray.all
corresponding function for ndarrays
Aliases
numpy.ma.MaskedArray.all