Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _fr1
Function
_fr1
numpy/core/getlimits.py:24–29 ·
view source on GitHub ↗
fix rank > 0 --> rank-0
(a)
Source
from the content-addressed store, hash-verified
22
23
24
def
_fr1(a):
25
""
"fix rank > 0 --> rank-0"
""
26
if
a.size == 1:
27
a = a.copy()
28
a.shape = ()
29
return
a
30
31
32
class
MachArLike:
Callers
1
_float_to_float
Method · 0.85
Calls
1
copy
Method · 0.45
Tested by
no test coverage detected