Evaluates p(x) = c0 + c1x + c2x^2 + ... on encrypted x.
Uses OpenFHE's default algorithm selector, which routes to
eval_poly_linear() for degree < 5 and eval_poly_ps()
(Paterson-Stockmeyer) for higher degrees. Call the variants
directly to force one algorithm or the other — Linear is
shallower for low-degree polynomials; PS has fewer
multiplications for high-degree polynomials.
eval_poly(ct, coefficients)A Ciphertext
A Ciphertext
Vector of polynomial coefficients, constant
term first. An integer, double or complex vector; OpenFHE
evaluates each type with its own arithmetic (integer
coefficients as exact 64-bit integers, complex coefficients for
a context with CKKSDataType$COMPLEX).
eval_poly_linear(), eval_poly_ps()