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

Function test_call

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

Source from the content-addressed store, hash-verified

530
531
532def test_call(Poly):
533 P = Polynomial
534 d = Poly.domain
535 x = np.linspace(d[0], d[1], 11)
536
537 # Check defaults
538 p = Poly.cast(P([1, 2, 3]))
539 tgt = 1 + x * (2 + 3 * x)
540 res = p(x)
541 assert_almost_equal(res, tgt)
542
543
544def test_call_with_list(Poly):

Callers

nothing calls this directly

Calls 3

assert_almost_equalFunction · 0.90
linspaceMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…