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

Method test_chebmul

numpy/polynomial/tests/test_chebyshev.py:93–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 assert_equal(cheb.chebmulx(ser), tgt)
92
93 def test_chebmul(self):
94 for i in range(5):
95 for j in range(5):
96 msg = f"At i={i}, j={j}"
97 tgt = np.zeros(i + j + 1)
98 tgt[i + j] += .5
99 tgt[abs(i - j)] += .5
100 res = cheb.chebmul([0]*i + [1], [0]*j + [1])
101 assert_equal(trim(res), trim(tgt), err_msg=msg)
102
103 def test_chebdiv(self):
104 for i in range(5):

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
absFunction · 0.85
trimFunction · 0.70

Tested by

no test coverage detected