-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A question about Negative number multiplication #2
Comments
Hi siaaron045 I tested as the following command.
I checked the decrypted result. And It seems correct. Best, Kyoohyung Han |
I test your code and the answer is right, |
Oh... when I put -1 instead of -5 it works. This problem came from the negate function in Context.cpp. Thanks for the report. |
Yes,but it works only when mvec=-1, i put -2,-3,-4 the answers are wrong. |
The error still exist. |
@KyoohyungHan Looks like you found the error source. Can you be more specific where is it? I think I can submit a patch. |
Hi~ is this problem solved? I found the same error too,but i have no idea how to fix it?Where exactly does this problem occur? |
This problem is not because of the negate function, but because of a problem with encode, where for copying simply adding the modulus leads to an encoding error. You can fix it by referring to the encoding functions of OPENFHE or Lattigo. |
I am sorry to trouble you.
When i use FullRNS-HEAAN to do a negative number multiplication, the answer is wrong.
Can FullRNS-HEAAN do negative number multiplication?(negative number addition is right)
Thanks a million.
The text was updated successfully, but these errors were encountered: