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

Method test_simple_int64_out

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

Source from the content-addressed store, hash-verified

2494 assert_array_strict_equal(ac, act)
2495
2496 def test_simple_int64_out(self):
2497 # Test native int32 input with int32 scalar min/max and int64 out.
2498 a = self._generate_int32_data(self.nr, self.nc)
2499 m = np.int32(-1)
2500 M = np.int32(1)
2501 ac = np.zeros(a.shape, dtype=np.int64)
2502 act = ac.copy()
2503 self.fastclip(a, m, M, ac)
2504 self.clip(a, m, M, act)
2505 assert_array_strict_equal(ac, act)
2506
2507 def test_simple_int64_inout(self):
2508 # Test native int32 input with double array min/max and int32 out.

Callers

nothing calls this directly

Calls 5

_generate_int32_dataMethod · 0.95
fastclipMethod · 0.95
clipMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected