get_bootstrap_depth: Get the required multiplicative depth for CKKS bootstrapping

View source: R/methods-ckks.R

get_bootstrap_depthR Documentation

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
)

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.

Value

Integer: required depth


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.