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

Method fastclip

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

Source from the content-addressed store, hash-verified

2326 nc = 3
2327
2328 def fastclip(self, a, m, M, out=None, **kwargs):
2329 return a.clip(m, M, out=out, **kwargs)
2330
2331 def clip(self, a, m, M, out=None):
2332 # 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