The multiplicative depth of cc must be at least
get_bootstrap_depth() for level_budget. At OpenFHE 1.6.1 the
library does not check this, and a setup with precompute = TRUE
on a shallower context ends the R session.
Arguments
- cc
A CryptoContext
- level_budget
Integer vector of length 2 (default: c(5, 4))
- dim1
Integer vector of length 2 (default: c(0, 0))
- slots
Number of slots (default: 0 = automatic)
- correction_factor
Correction factor (default: 0)
- precompute
Logical; compute the encoding and decoding plaintexts of bootstrapping now (default: TRUE). With
FALSE, calleval_bootstrap_precompute()beforeeval_bootstrap().- bt_slots_encoding
Logical; controls whether the bootstrap precomputes with slot-count encoding (the
BTSlotsEncodingtail argument on cryptocontext.h line 3513). DefaultFALSEmatching the C++ default.
Value
Invisibly, the cc crypto context that was passed in. Called for
its side effect: the linear transforms bootstrapping needs are
precomputed and cached inside the C++ context. Call it before
eval_bootstrap_key_gen().
