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

Method test_hermpow

numpy/polynomial/tests/test_hermite.py:100–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 assert_equal(trim(res), trim(tgt), err_msg=msg)
99
100 def test_hermpow(self):
101 for i in range(5):
102 for j in range(5):
103 msg = f"At i={i}, j={j}"
104 c = np.arange(i + 1)
105 tgt = reduce(herm.hermmul, [c] * j, np.array([1]))
106 res = herm.hermpow(c, j)
107 assert_equal(trim(res), trim(tgt), err_msg=msg)
108
109
110class TestEvaluation:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
trimFunction · 0.70

Tested by

no test coverage detected