MCPcopy 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
16def _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
24def _fr1(a):

Callers 2

_float_to_strMethod · 0.85
_discovered_macharFunction · 0.85

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected