Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ __abs__
Method
__abs__
numpy/lib/_user_array_impl.py:91–92 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
89
self.array[index] = asarray(value, self.dtype)
90
91
def
__abs__(self):
92
return
self._rc(absolute(self.array))
93
94
def
__neg__(self):
95
return
self._rc(-self.array)
Callers
nothing calls this directly
Calls
1
_rc
Method · 0.95
Tested by
no test coverage detected