ckks_scaling_factor_bits: CKKS scaling-mod-size in bits

View source: R/ciphertext-accessors.R

ckks_scaling_factor_bitsR Documentation

CKKS scaling-mod-size in bits

Description

Reads the real-valued scaling factor at level 0 from cc via get_scaling_factor_real() and returns its log2 rounded to the nearest integer. For a CKKS context constructed with set_scaling_mod_size(50L) this returns 50L.

Usage

ckks_scaling_factor_bits(cc)

Arguments

cc

A CryptoContext (should be CKKS — meaningful only for CKKS contexts).

Details

Used by the Stage 2 form of fhe_ckks_tolerance().

Value

Integer.


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