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

Method _int_clip

numpy/core/tests/test_simd.py:68–73  ·  view source on GitHub ↗
(self, seq)

Source from the content-addressed store, hash-verified

66 return int(self.sfx[1:])
67
68 def _int_clip(self, seq):
69 if self._is_fp():
70 return seq
71 max_int = self._int_max()
72 min_int = self._int_min()
73 return [min(max(v, min_int), max_int) for v in seq]
74
75 def _int_max(self):
76 if self._is_fp():

Callers 1

Calls 5

_is_fpMethod · 0.95
_int_maxMethod · 0.95
_int_minMethod · 0.95
minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected