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

Function test_mapparms

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

Source from the content-addressed store, hash-verified

577
578
579def test_mapparms(Poly):
580 # check with defaults. Should be identity.
581 d = Poly.domain
582 w = Poly.window
583 p = Poly([1], domain=d, window=w)
584 assert_almost_equal([0, 1], p.mapparms())
585 #
586 w = 2 * d + 1
587 p = Poly([1], domain=d, window=w)
588 assert_almost_equal([1, 2], p.mapparms())
589
590
591def test_ufunc_override(Poly):

Callers

nothing calls this directly

Calls 3

assert_almost_equalFunction · 0.90
PolyFunction · 0.85
mapparmsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…