bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / _arraymethod
function
numpy.ma.core:_arraymethod
source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :2604
Signature
def _arraymethod ( funcname , onmask = True ) Summary
Return a class method wrapper around a basic array method.
Extended Summary
Creates a class method which returns a masked array, where the new _data array is the output of the corresponding basic method called on the original _data.
If onmask is True, the new mask is the output of the method called on the initial mask. Otherwise, the new mask is just a reference to the initial mask.
Parameters
funcname: strName of the function to apply on data.
onmask: boolWhether the mask must be processed also (True) or left alone (False). Default is True. Make available as
_onmaskattribute.
Returns
method: instancemethodClass method wrapper of the specified basic array method.
Aliases
-
numpy.ma.core._arraymethod