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

Method test_hermpow

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
trimFunction · 0.70

Tested by

no test coverage detected