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

Function test_memoverlap_accumulate

numpy/core/tests/test_umath.py:4617–4623  ·  view source on GitHub ↗
(ftype)

Source from the content-addressed store, hash-verified

4615
4616@pytest.mark.parametrize('ftype', [np.float32, np.float64])
4617def test_memoverlap_accumulate(ftype):
4618 # Reproduces bug https://github.com/numpy/numpy/issues/15597
4619 arr = np.array([0.61, 0.60, 0.77, 0.41, 0.19], dtype=ftype)
4620 out_max = np.array([0.61, 0.61, 0.77, 0.77, 0.77], dtype=ftype)
4621 out_min = np.array([0.61, 0.60, 0.60, 0.41, 0.19], dtype=ftype)
4622 assert_equal(np.maximum.accumulate(arr), out_max)
4623 assert_equal(np.minimum.accumulate(arr), out_min)
4624
4625@pytest.mark.parametrize("ufunc, dtype", [
4626 (ufunc, t[0])

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
accumulateMethod · 0.80

Tested by

no test coverage detected