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

Method test_ptp

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

Source from the content-addressed store, hash-verified

151 assert_(w[0].category is RuntimeWarning)
152
153 def test_ptp(self):
154 a = [3, 4, 5, 10, -3, -5, 6.0]
155 assert_equal(np.ptp(a, axis=0), 15.0)
156
157 def test_prod(self):
158 arr = [[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
ptpMethod · 0.45

Tested by

no test coverage detected