True divide self by other in-place.
(self, other)
| 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 | """ |