eval_poly_linear: Evaluate a polynomial via the linear evaluator

View source: R/methods-ckks.R

eval_poly_linearR Documentation

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)

Arguments

ct

A Ciphertext

coefficients

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

Value

A Ciphertext

See Also

eval_poly(), eval_poly_ps()


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.