MCPcopy Index your code
hub / github.com/numpy/numpy / __iadd__

Method __iadd__

numpy/ma/core.py:4403–4418  ·  view source on GitHub ↗

Add other to self in-place.

(self, other)

Source from the content-addressed store, hash-verified

4401 return power(other, self)
4402
4403 def __iadd__(self, other):
4404 """
4405 Add other to self in-place.
4406
4407 """
4408 m = getmask(other)
4409 if self._mask is nomask:
4410 if m is not nomask and m.any():
4411 self._mask = make_mask_none(self.shape, self.dtype)
4412 self._mask += m
4413 elif m is not nomask:
4414 self._mask += m
4415 other_data = getdata(other)
4416 other_data = np.where(self._mask, other_data.dtype.type(0), other_data)
4417 self._data.__iadd__(other_data)
4418 return self
4419
4420 def __isub__(self, other):
4421 """

Callers

nothing calls this directly

Calls 4

getmaskFunction · 0.85
make_mask_noneFunction · 0.85
getdataFunction · 0.85
anyMethod · 0.45

Tested by

no test coverage detected