With composition
Last updated
Last updated
A simple way to say that a function f
should be compiled such that its outputs can be reused as inputs is to use the configuration setting to True
when compiling. Doing so, we can then easily compute f(f(x))
or f**i(x) = f(f(...(f(x) ..))
for a variable non-encrypted integer i
, which is typically what happens for recursions.
Remark that this option is the equivalent of using the fhe.AllComposable
policy of . In particular, the same limitations may occur (see section).