| eval_poly | R Documentation |
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)
ct |
A Ciphertext |
coefficients |
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 |
A Ciphertext
eval_poly_linear(), eval_poly_ps()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.