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

Method test_simple_inplace_01

numpy/_core/tests/test_numeric.py:2529–2537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2527 assert_array_strict_equal(ac, act)
2528
2529 def test_simple_inplace_01(self):
2530 # Test native double input with array min/max in-place.
2531 a = self._generate_data(self.nr, self.nc)
2532 ac = a.copy()
2533 m = np.zeros(a.shape)
2534 M = 1.0
2535 self.fastclip(a, m, M, a)
2536 self.clip(a, m, M, ac)
2537 assert_array_strict_equal(a, ac)
2538
2539 def test_simple_inplace_02(self):
2540 # Test native double input with scalar min/max in-place.

Callers

nothing calls this directly

Calls 5

_generate_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected