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

Method _int_max

numpy/core/tests/test_simd.py:75–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 return [min(max(v, min_int), max_int) for v in seq]
74
75 def _int_max(self):
76 if self._is_fp():
77 return None
78 max_u = self._to_unsigned(self.setall(-1))[0]
79 if self._is_signed():
80 return max_u // 2
81 return max_u
82
83 def _int_min(self):
84 if self._is_fp():

Callers 10

_int_clipMethod · 0.95
_int_minMethod · 0.95
test_operators_shiftMethod · 0.80
test_arithmetic_mulMethod · 0.80

Calls 3

_is_fpMethod · 0.95
_to_unsignedMethod · 0.95
_is_signedMethod · 0.95

Tested by

no test coverage detected