Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _fr0
Function
_fr0
numpy/core/getlimits.py:16–21 ·
view source on GitHub ↗
fix rank-0 --> rank-1
(a)
Source
from the content-addressed store, hash-verified
14
15
16
def
_fr0(a):
17
""
"fix rank-0 --> rank-1"
""
18
if
a.ndim == 0:
19
a = a.copy()
20
a.shape = (1,)
21
return
a
22
23
24
def
_fr1(a):
Callers
2
_float_to_str
Method · 0.85
_discovered_machar
Function · 0.85
Calls
1
copy
Method · 0.45
Tested by
no test coverage detected