Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ center
Method
center
numpy/lib/tests/test_function_base.py:1903–1904 ·
view source on GitHub ↗
(a)
Source
from the content-addressed store, hash-verified
1901
1902
def
test_signature_center(self):
1903
def
center(a):
1904
return
a - a.mean()
1905
1906
f = vectorize(center, signature=
'(n)->(n)'
)
1907
r = f([[1, 3], [2, 4]])
Callers
nothing calls this directly
Calls
1
mean
Method · 0.45
Tested by
no test coverage detected