MCPcopy
hub / github.com/numpy/numpy / __imul__

Method __imul__

numpy/ma/core.py:4437–4452  ·  view source on GitHub ↗

Multiply self by other in-place.

(self, other)

Source from the content-addressed store, hash-verified

4435 return self
4436
4437 def __imul__(self, other):
4438 """
4439 Multiply self by other in-place.
4440
4441 """
4442 m = getmask(other)
4443 if self._mask is nomask:
4444 if m is not nomask and m.any():
4445 self._mask = make_mask_none(self.shape, self.dtype)
4446 self._mask += m
4447 elif m is not nomask:
4448 self._mask += m
4449 other_data = getdata(other)
4450 other_data = np.where(self._mask, other_data.dtype.type(1), other_data)
4451 self._data.__imul__(other_data)
4452 return self
4453
4454 def __ifloordiv__(self, other):
4455 """

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