Open jayavanth opened 5 years ago
Hi. Tried that with
complex<double> *dvalc = scheme.decrypt(secretKey, cipherz);
for (long i=0; i<slots; i++)
dval[i] = dvalc[i].real();
instead of your scheme.decrypt_double line. That works and produces errors of size 3e-15.
Here's the code to reproduce
sub
compared to unencryptedThis results in the output : https://pastebin.com/4EmFZvdQ
Also, is there an alternative? The alternatives
negate() -> add()
ORmultByConst(-1) -> add()
are also resulting in similar error ranges.