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

Method __itruediv__

numpy/ma/core.py:4473–4490  ·  view source on GitHub ↗

True divide self by other in-place.

(self, other)

Source from the content-addressed store, hash-verified

4471 return self
4472
4473 def __itruediv__(self, other):
4474 """
4475 True divide self by other in-place.
4476
4477 """
4478 other_data = getdata(other)
4479 dom_mask = _DomainSafeDivide().__call__(self._data, other_data)
4480 other_mask = getmask(other)
4481 new_mask = mask_or(other_mask, dom_mask)
4482 # The following 3 lines control the domain filling
4483 if dom_mask.any():
4484 (_, fval) = ufunc_fills[np.true_divide]
4485 other_data = np.where(
4486 dom_mask, other_data.dtype.type(fval), other_data)
4487 self._mask |= new_mask
4488 other_data = np.where(self._mask, other_data.dtype.type(1), other_data)
4489 self._data.__itruediv__(other_data)
4490 return self
4491
4492 def __ipow__(self, other):
4493 """

Callers

nothing calls this directly

Calls 6

getdataFunction · 0.85
_DomainSafeDivideClass · 0.85
getmaskFunction · 0.85
mask_orFunction · 0.85
__call__Method · 0.45
anyMethod · 0.45

Tested by

no test coverage detected