Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ __sub__
Method
__sub__
numpy/lib/_user_array_impl.py:106–107 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
104
return
self
105
106
def
__sub__(self, other):
107
return
self._rc(self.array - asarray(other))
108
109
def
__rsub__(self, other):
110
return
self._rc(asarray(other) - self.array)
Callers
nothing calls this directly
Calls
2
_rc
Method · 0.95
asarray
Function · 0.90
Tested by
no test coverage detected