-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to use signum? #9
Comments
please see examples here: https://github.com/fairmath/polycircuit/tree/main/examples |
Thank you, but I'm a bit slow. I want to use this to compare encrypted texts. How can I achieve this? Is there any interface or function I can call to use it quickly? |
Hello! Have you tried running |
@zzzhhhlll you can implement comparison function using SIGN component. Just use sign(a - b). |
ok,I would like to ask what the purpose of the move function inside is, and why it is used terminate called after throwing an instance of 'lbcrypto::OpenFHEException' |
ok,I would like to ask what the purpose of the move function inside is, and why it is used terminate called after throwing an instance of 'lbcrypto::OpenFHEException' I don't want to use any other parameters, I just want to use this P to get the output result |
I succeeded, but I have some other issues. How can I control this precision, and does the content of the vector I input have to be between -1 and 1? If the content of my vector is something like [25, -100, 1000], how should I adjust other parameters, such as multiplication depth, modulus, etc.? |
Let me check and get back to you |
m_cc->Enable(ADVANCEDSHE);
Could you explain these codes, please? By the way, how should I use it to compare two ciphertexts, what is the required multiplication depth, and how is the precision controlled?"Thank you very much.
The text was updated successfully, but these errors were encountered: