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

Method fastclip

numpy/core/tests/test_numeric.py:1839–1840  ·  view source on GitHub ↗
(self, a, m, M, out=None, **kwargs)

Source from the content-addressed store, hash-verified

1837 self.nc = 3
1838
1839 def fastclip(self, a, m, M, out=None, **kwargs):
1840 return a.clip(m, M, out=out, **kwargs)
1841
1842 def clip(self, a, m, M, out=None):
1843 # use a.choose to verify fastclip result

Callers 15

test_simple_doubleMethod · 0.95
test_simple_intMethod · 0.95
test_array_doubleMethod · 0.95
test_simple_nonnativeMethod · 0.95
test_simple_complexMethod · 0.95
test_clip_complexMethod · 0.95
test_clip_non_contigMethod · 0.95
test_simple_outMethod · 0.95
test_simple_int64_outMethod · 0.95
test_simple_int32_outMethod · 0.95

Calls 1

clipMethod · 0.80

Tested by

no test coverage detected