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.
eval_bootstrap_setup(
cc,
level_budget = c(5L, 4L),
dim1 = c(0L, 0L),
slots = 0L,
correction_factor = 0L,
precompute = TRUE,
bt_slots_encoding = FALSE
)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().
A CryptoContext
Integer vector of length 2 (default: c(5, 4))
Integer vector of length 2 (default: c(0, 0))
Number of slots (default: 0 = automatic)
Correction factor (default: 0)
Logical; compute the encoding and decoding
plaintexts of bootstrapping now (default: TRUE). With FALSE,
call eval_bootstrap_precompute() before eval_bootstrap().
Logical; controls whether the
bootstrap precomputes with slot-count encoding (the
BTSlotsEncoding tail argument on cryptocontext.h line
3513). Default FALSE matching the C++ default.