
Chebyshev approximation of a function, in the clear
Source:R/key-switching.R
eval_chebyshev_function_ptxt.RdThe cleartext counterpart of eval_chebyshev_function(): it
evaluates the degree-degree Chebyshev approximation of func on
[a, b] at the points ptxt, with the arithmetic OpenFHE uses on
ciphertexts. Comparing its result with func(ptxt) gives the
approximation error of a degree before any encrypted computation
is run.