With composition
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 composable
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 modules. In particular, the same limitations may occur (see limitations documentation section).
Last updated