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

Method test_simple_out

numpy/core/tests/test_numeric.py:1979–1988  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1977 assert_array_strict_equal(ac, act)
1978
1979 def test_simple_out(self):
1980 # Test native double input with scalar min/max.
1981 a = self._generate_data(self.nr, self.nc)
1982 m = -0.5
1983 M = 0.6
1984 ac = np.zeros(a.shape)
1985 act = np.zeros(a.shape)
1986 self.fastclip(a, m, M, ac)
1987 self.clip(a, m, M, act)
1988 assert_array_strict_equal(ac, act)
1989
1990 @pytest.mark.parametrize("casting", [None, "unsafe"])
1991 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