Uses OpenFHE's default algorithm selector, which routes to
eval_chebyshev_linear() for degree < 5 and
eval_chebyshev_ps() (Paterson-Stockmeyer) for higher
degrees. Call the variants directly to force one algorithm
or the other.
eval_chebyshev(ct, coefficients, a, b)A Ciphertext
A Ciphertext
Integer, double or complex vector of Chebyshev
coefficients. Each type is evaluated with its own arithmetic, as
for eval_poly(). Pass whole-number coefficients as doubles
(c(1, 2, 3), not c(1L, 2L, 3L)): at OpenFHE 1.6.1 the
Paterson-Stockmeyer evaluator, which this function uses from
degree 5, returns wrong values for integer coefficients.
Lower bound of the approximation interval
Upper bound of the approximation interval
eval_chebyshev_coefficients() and
eval_chebyshev_function() for constructing the coefficient
vector from a user-supplied function;
eval_chebyshev_linear() / eval_chebyshev_ps() for
forcing the algorithm.