Fboemer/rescale in place
- Adds ModReduceInPlace (see #252) to CKKS and BGVRns
- Yields ~1% speedup in CKKS Rescale
CKKS_Rescale 366 us 365 us 11336
CKKS_RescaleInPlace 364 us 362 us 11312
- Note, the API for ModReduce takes in a
levels
argument that appears to be unused, so I've added it to the ModReduceInPlace API as well. - Some cleanup of EvalAddInPlace. In particular,
EvalAdd
is implemented asEvalAddInPlace
inpubkeylp.h
, which enables removal of scheme-specificEvalAdd
code.
Edited by Fabian Boemer