Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __neg__
Method
__neg__
numpy/lib/user_array.py:57–58 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
55
return
self._rc(absolute(self.array))
56
57
def
__neg__(self):
58
return
self._rc(-self.array)
59
60
def
__add__(self, other):
61
return
self._rc(self.array + asarray(other))
Callers
nothing calls this directly
Calls
1
_rc
Method · 0.95
Tested by
no test coverage detected