mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
Two changes:
- Fix setting `k` in `GlweOps` - Improve GLWEPacker API avoid accumulating beyond limit (#50)
This commit is contained in:
@@ -34,7 +34,7 @@ pub trait Infos {
|
||||
/// Returns the number of size per polynomial.
|
||||
fn size(&self) -> usize {
|
||||
let size: usize = self.inner().size();
|
||||
debug_assert_eq!(size, self.k().div_ceil(self.basek()));
|
||||
debug_assert!(size >= self.k().div_ceil(self.basek()));
|
||||
size
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user