Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __mul__
Method
__mul__
numpy/core/tests/test_multiarray.py:6613–6616 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
6611
return
out
6612
6613
def
__mul__(self, other):
# with scalar
6614
out = Vec(self.array.copy())
6615
out.array *= other
6616
return
out
6617
6618
def
__rmul__(self, other):
6619
return
self*other
Callers
nothing calls this directly
Calls
2
Vec
Class · 0.85
copy
Method · 0.45
Tested by
no test coverage detected