MCPcopy 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
24def _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
32class MachArLike:

Callers 1

_float_to_floatMethod · 0.85

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected