(self)
| 112 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 113 | |
| 114 | def test_chebpow(self): |
| 115 | for i in range(5): |
| 116 | for j in range(5): |
| 117 | msg = f"At i={i}, j={j}" |
| 118 | c = np.arange(i + 1) |
| 119 | tgt = reduce(cheb.chebmul, [c]*j, np.array([1])) |
| 120 | res = cheb.chebpow(c, j) |
| 121 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 122 | |
| 123 | |
| 124 | class TestEvaluation: |
nothing calls this directly
no test coverage detected