Learn R Programming

openfhe.R (version 1.6.1)

eval_poly_linear: Evaluate a polynomial via the linear evaluator

Description

Forces the "linear" Horner-style polynomial evaluator regardless of degree. Shallower circuit depth than the Paterson-Stockmeyer variant but uses more multiplications at high degree. Cheaper for degree < 5; fall over to eval_poly_ps() above that.

Usage

eval_poly_linear(ct, coefficients)

Value

A Ciphertext

Arguments

ct

A Ciphertext

coefficients

Integer, double or complex vector of polynomial coefficients, as for eval_poly()

See Also

eval_poly(), eval_poly_ps()