
CKKS functional bootstrapping of a Fourier series
Source:R/functional-bootstrapping.R
eval_fe_func_bootstrap_setup.RdRefreshes a ciphertext and evaluates on its values the function
whose Fourier coefficients are coefficients, in the same step
(CKKS with CKKSDataType$COMPLEX).
Arguments
- cc
A CKKS
CryptoContextwithFeature$FHEenabled.- level_budget
Integer vector of length 2. Default
c(5L, 4L).- dim1
Integer vector of length 2. Default
c(0L, 0L).- slots
Integer; number of slots,
0L(default) for full packing.- ct
A
Ciphertext.- coefficients
Numeric or complex vector of Fourier coefficients.
- powers
A SeriesPowers object from
eval_fe_func_bootstrap_precompute().
Value
eval_fe_func_bootstrap_setup(): cc, invisibly.
eval_fe_func_bootstrap_precompute(): a SeriesPowers object.
The others: a Ciphertext.
Details
eval_fe_func_bootstrap_setup() prepares the context; call
eval_bootstrap_key_gen() after it. eval_fe_func_bootstrap()
does the whole evaluation. eval_fe_func_bootstrap_precompute()
and eval_fe_func_bootstrap_with_precomp() split it, so that
several series of the same length can be evaluated on one input.
The setup shares the bootstrapping precomputation of the context
for slots with eval_bootstrap_setup() and eval_fbt_setup(): a
context holds one of the three per slot count.