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

Function test_basis

numpy/polynomial/tests/test_classes.py:111–117  ·  view source on GitHub ↗
(Poly)

Source from the content-addressed store, hash-verified

109
110
111def test_basis(Poly):
112 d = Poly.domain + random((2,)) * .25
113 w = Poly.window + random((2,)) * .25
114 p = Poly.basis(5, domain=d, window=w)
115 assert_equal(p.domain, d)
116 assert_equal(p.window, w)
117 assert_equal(p.coef, [0] * 5 + [1])
118
119
120def test_fromroots(Poly):

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
basisMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…