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

Method test_simple_out

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

Source from the content-addressed store, hash-verified

2466 assert_array_strict_equal(ac, act)
2467
2468 def test_simple_out(self):
2469 # Test native double input with scalar min/max.
2470 a = self._generate_data(self.nr, self.nc)
2471 m = -0.5
2472 M = 0.6
2473 ac = np.zeros(a.shape)
2474 act = np.zeros(a.shape)
2475 self.fastclip(a, m, M, ac)
2476 self.clip(a, m, M, act)
2477 assert_array_strict_equal(ac, act)
2478
2479 @pytest.mark.parametrize("casting", [None, "unsafe"])
2480 def test_simple_int32_inout(self, casting):

Callers

nothing calls this directly

Calls 4

_generate_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95

Tested by

no test coverage detected