MCPcopy Create free account
hub / github.com/numpy/numpy / _min_int

Function _min_int

numpy/lib/twodim_base.py:33–41  ·  view source on GitHub ↗

get small int that fits the range

(low, high)

Source from the content-addressed store, hash-verified

31
32
33def _min_int(low, high):
34 """ get small int that fits the range """
35 if high <= i1.max and low >= i1.min:
36 return int8
37 if high <= i2.max and low >= i2.min:
38 return int16
39 if high <= i4.max and low >= i4.min:
40 return int32
41 return int64
42
43
44def _flip_dispatcher(m):

Callers 1

triFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected