This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

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 : str

Name of the function to apply on data.

onmask : bool

Whether the mask must be processed also (True) or left alone (False). Default is True. Make available as _onmask attribute.

Returns

method : instancemethod

Class method wrapper of the specified basic array method.

Aliases

  • numpy.ma.core._arraymethod