Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __pow__
Method
__pow__
numpy/lib/user_array.py:116–117 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
114
self._rc(remainder(other, self.array)))
115
116
def
__pow__(self, other):
117
return
self._rc(power(self.array, asarray(other)))
118
119
def
__rpow__(self, other):
120
return
self._rc(power(asarray(other), self.array))
Callers
nothing calls this directly
Calls
3
_rc
Method · 0.95
power
Function · 0.90
asarray
Function · 0.90
Tested by
no test coverage detected