| eval_floor | R Documentation |
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.
eval_floor(ctx, ct, roundbits = 0L)
ctx |
A BinFHEContext |
ct |
An LWECiphertext |
roundbits |
Integer; the number of low-order bits to
round off. Default |
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).
A new LWECiphertext holding the rounded value.
eval_func(), eval_sign()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.