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

Method __mul__

numpy/core/tests/test_einsum.py:138–144  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

136 return self.__add__(other)
137
138 def __mul__(self, other):
139 tmp = self._val * other._val
140 if tmp >= self._destruct:
141 raise CustomException
142 else:
143 self._val = tmp
144 return self
145
146 def __rmul__(self, other):
147 if other == 0:

Callers 1

__rmul__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected