You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem you want to solve and can not with the current version?
Since the introduction of BooleanBlock in 0.5.0, k.if_then_else_parallelized(c, a, b) expects c to be a BooleanBlock and a and b to implement trait IntegerRadixCiphertext, for an integer radix key k.
Sometimes, however, we want to compute an if_then_else on a triple of boolean values (i.e., a and b being of type BooleanBlock). This is not possible currently.
Describe the solution you'd like
Either allow a and b of type BooleanBlock as an input to k.if_then_else_parallelized(c, a, b), or provide a separate function on the key that permits such inputs.
Describe alternatives you've considered
It is possible to achieve the desired functionality by converting to and from RadixCiphertext, or via k.boolean_bitor(k.boolean_bitand(c, a), k.boolean_bitand(k.boolean_bitnot(c), a)), but this is cumbersome.
Additional context tfhe-rs = { version="0.5.0" }
The text was updated successfully, but these errors were encountered:
Yes I think it's the idea, we have been far more busy than anticipated and in the end did not tackle that, @arajasek if you have signed the CLA and see how to integrate that in integer and in the tests then sure
What is the problem you want to solve and can not with the current version?
Since the introduction of
BooleanBlock
in0.5.0
,k.if_then_else_parallelized(c, a, b)
expectsc
to be aBooleanBlock
anda
andb
to implement traitIntegerRadixCiphertext
, for an integer radix keyk
.Sometimes, however, we want to compute an if_then_else on a triple of boolean values (i.e.,
a
andb
being of typeBooleanBlock
). This is not possible currently.Describe the solution you'd like
Either allow
a
andb
of typeBooleanBlock
as an input tok.if_then_else_parallelized(c, a, b)
, or provide a separate function on the key that permits such inputs.Describe alternatives you've considered
It is possible to achieve the desired functionality by converting to and from
RadixCiphertext
, or viak.boolean_bitor(k.boolean_bitand(c, a), k.boolean_bitand(k.boolean_bitnot(c), a))
, but this is cumbersome.Additional context
tfhe-rs = { version="0.5.0" }
The text was updated successfully, but these errors were encountered: