microsoft / SEAL

Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.
https://www.microsoft.com/en-us/research/group/cryptography-research/
MIT License
3.55k stars 706 forks source link

Scale mismatch error despite relinearilization and rescaling #659

Closed Mikerah closed 1 year ago

Mikerah commented 1 year ago

I am trying to implement an inverse function as per this paper. However, I get the following error at here in my code:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  scale mismatch
Aborted (core dumped)

I am not sure how to fix this because I manually checked the scales myself and they are the same. Any clues as to what is causing this?