MCPcopy
hub / github.com/numpy/numpy / test_hermeadd

Method test_hermeadd

numpy/polynomial/tests/test_hermite_e.py:47–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 x = np.linspace(-3, 3, 100)
46
47 def test_hermeadd(self):
48 for i in range(5):
49 for j in range(5):
50 msg = f"At i={i}, j={j}"
51 tgt = np.zeros(max(i, j) + 1)
52 tgt[i] += 1
53 tgt[j] += 1
54 res = herme.hermeadd([0] * i + [1], [0] * j + [1])
55 assert_equal(trim(res), trim(tgt), err_msg=msg)
56
57 def test_hermesub(self):
58 for i in range(5):

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
trimFunction · 0.70
maxFunction · 0.50

Tested by

no test coverage detected