Learn R Programming

openfhe.R (version 1.6.1)

get_bootstrap_depth: Get the required multiplicative depth for CKKS bootstrapping

Description

Get the required multiplicative depth for CKKS bootstrapping

Usage

get_bootstrap_depth(
  level_budget,
  secret_key_dist = SecretKeyDist$UNIFORM_TERNARY,
  approx_mod_depth = NULL
)

Value

Integer: required depth

Arguments

level_budget

Integer vector of length 2

secret_key_dist

Secret key distribution, an element of SecretKeyDist (default: SecretKeyDist$UNIFORM_TERNARY)

approx_mod_depth

Optional integer: the depth of the Chebyshev interpolation of the approximate modular reduction. When given, the three-argument C++ form is called, which OpenFHE keeps for backward compatibility. NULL (default) calls the two-argument form, which derives that depth from secret_key_dist.