MCPcopy Index your code
hub / github.com/numpy/numpy / _min_int

Function _min_int

numpy/lib/_twodim_base_impl.py:49–57  ·  view source on GitHub ↗

get small int that fits the range

(low, high)

Source from the content-addressed store, hash-verified

47
48
49def _min_int(low, high):
50 """ get small int that fits the range """
51 if high <= i1.max and low >= i1.min:
52 return int8
53 if high <= i2.max and low >= i2.min:
54 return int16
55 if high <= i4.max and low >= i4.min:
56 return int32
57 return int64
58
59
60def _flip_dispatcher(m):

Callers 1

triFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…