| generate_lut_via_function | R Documentation |
Computes f(0:(p-1), p) and returns it as a numeric vector
suitable for eval_func(). This is the R-side analogue of
OpenFHE's GenerateLUTviaFunction — we don't bind the C++
helper because its signature takes a raw function pointer that
can't capture an R closure, and R is natively vectorised so a
pure-R helper is both simpler and faster than wiring an R
callback through cpp11.
generate_lut_via_function(f, p)
f |
A function |
p |
The plaintext modulus (typically |
A length-p numeric vector of LUT entries
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.