Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __rmul__
Method
__rmul__
numpy/core/tests/test_einsum.py:146–150 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
144
return
self
145
146
def
__rmul__(self, other):
147
if
other == 0:
148
return
self
149
else
:
150
return
self.__mul__(other)
151
152
a = np.array([DestructoBox(i, 5)
for
i in range(1, 10)],
153
dtype=
'object'
).reshape(3, 3)
Callers
nothing calls this directly
Calls
1
__mul__
Method · 0.95
Tested by
no test coverage detected