MCPcopy Create free account
hub / github.com/numpy/numpy / __imul__

Method __imul__

numpy/ma/core.py:4351–4366  ·  view source on GitHub ↗

Multiply self by other in-place.

(self, other)

Source from the content-addressed store, hash-verified

4349 return self
4350
4351 def __imul__(self, other):
4352 """
4353 Multiply self by other in-place.
4354
4355 """
4356 m = getmask(other)
4357 if self._mask is nomask:
4358 if m is not nomask and m.any():
4359 self._mask = make_mask_none(self.shape, self.dtype)
4360 self._mask += m
4361 elif m is not nomask:
4362 self._mask += m
4363 other_data = getdata(other)
4364 other_data = np.where(self._mask, other_data.dtype.type(1), other_data)
4365 self._data.__imul__(other_data)
4366 return self
4367
4368 def __idiv__(self, other):
4369 """

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