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

Method __mul__

numpy/matrixlib/defmatrix.py:221–227  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

219 return out
220
221 def __mul__(self, other):
222 if isinstance(other, (N.ndarray, list, tuple)):
223 # This promotes 1-D vectors to row vectors
224 return N.dot(self, asmatrix(other))
225 if isscalar(other) or not hasattr(other, '__rmul__'):
226 return N.dot(self, other)
227 return NotImplemented
228
229 def __rmul__(self, other):
230 return N.dot(other, self)

Callers

nothing calls this directly

Calls 3

isscalarFunction · 0.90
asmatrixFunction · 0.85
dotMethod · 0.80

Tested by

no test coverage detected