eval_floor: Evaluate a floor (rounding) function on an LWE ciphertext

View source: R/binfhe.R

eval_floorR Documentation

Evaluate a floor (rounding) function on an LWE ciphertext

Description

Performs the LWE equivalent of floor(ct / 2^roundbits) via functional bootstrapping. Used as a primitive in arbitrary- function evaluation pipelines where the bit-level rounding operation is needed separately from eval_func()'s LUT path.

Usage

eval_floor(ctx, ct, roundbits = 0L)

Arguments

ctx

A BinFHEContext

ct

An LWECiphertext

roundbits

Integer; the number of low-order bits to round off. Default 0L, the C++ header default.

Details

Binding-level note: the underlying BinFHEContext__EvalFloor cpp11 binding has been present since the earliest BinFHE work; the R wrapper was added later to close the latent gap (cpp11-only entry with no R path).

Value

A new LWECiphertext holding the rounded value.

See Also

eval_func(), eval_sign()


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