MCPcopy
hub / github.com/numpy/numpy / __isub__

Method __isub__

numpy/ma/core.py:4420–4435  ·  view source on GitHub ↗

Subtract other from self in-place.

(self, other)

Source from the content-addressed store, hash-verified

4418 return self
4419
4420 def __isub__(self, other):
4421 """
4422 Subtract other from self in-place.
4423
4424 """
4425 m = getmask(other)
4426 if self._mask is nomask:
4427 if m is not nomask and m.any():
4428 self._mask = make_mask_none(self.shape, self.dtype)
4429 self._mask += m
4430 elif m is not nomask:
4431 self._mask += m
4432 other_data = getdata(other)
4433 other_data = np.where(self._mask, other_data.dtype.type(0), other_data)
4434 self._data.__isub__(other_data)
4435 return self
4436
4437 def __imul__(self, other):
4438 """

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