def test_linear_root(self): assert_(herm.hermcompanion([1, 2])[0, 0] == -.25)
def test_dimensions(self): for i in range(1, 5): coef = [0] * i + [1] assert_(herm.hermcompanion(coef).shape == (i, i))
def test_dimensions(self): for i in range(1, 5): coef = [0]*i + [1] assert_(herm.hermcompanion(coef).shape == (i, i))