Lines Matching refs:poly
51 Vector poly(1); in ConstantPolynomial() local
52 poly(0) = value; in ConstantPolynomial()
53 return poly; in ConstantPolynomial()
57 Vector AddRealRoot(const Vector& poly, double root) { in AddRealRoot() argument
58 Vector poly2(poly.size() + 1); in AddRealRoot()
60 poly2.head(poly.size()) += poly; in AddRealRoot()
61 poly2.tail(poly.size()) -= root * poly; in AddRealRoot()
67 Vector AddComplexRootPair(const Vector& poly, double real, double imag) { in AddComplexRootPair() argument
68 Vector poly2(poly.size() + 2); in AddComplexRootPair()
71 poly2.head(poly.size()) += poly; in AddComplexRootPair()
72 poly2.segment(1, poly.size()) -= 2 * real * poly; in AddComplexRootPair()
73 poly2.tail(poly.size()) += (real*real + imag*imag) * poly; in AddComplexRootPair()
96 Vector poly = ConstantPolynomial(1.23); in RunPolynomialTestRealRoots() local
98 poly = AddRealRoot(poly, real_roots[i]); in RunPolynomialTestRealRoots()
102 bool success = FindPolynomialRoots(poly, real_ptr, imaginary_ptr); in RunPolynomialTestRealRoots()
121 Vector poly(0, 1); in TEST() local
124 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()
130 Vector poly = ConstantPolynomial(1.23); in TEST() local
133 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()
174 Vector poly = ConstantPolynomial(1.23); in TEST() local
175 poly = AddComplexRootPair(poly, 42.42, 4.2); in TEST()
176 bool success = FindPolynomialRoots(poly, &real, &imag); in TEST()