-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(concrete_npe): remove torus type generics #144
Conversation
Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @mayeul-zama on file. In order for us to review and merge your code, please send an email to hello@zama.ai to get yourself added |
acfa2e2
to
6a27935
Compare
@slab-ci cpu_test |
6a27935
to
8452560
Compare
@slab-ci cpu_test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mayeul-zama! Thank you for the contribution! 🙂 It looks good to me, I just have a small comment you'll see. 😉
concrete-commons/src/dispersion.rs
Outdated
fn get_modular_standard_dev<Uint>(&self) -> f64 | ||
where | ||
Uint: UnsignedInteger; | ||
fn get_modular_standard_dev(&self, log2_modulus: u64) -> f64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small thing: we could use a u32 or even a u8 for log2_modulus I guess, it's always going to be 32 or 64...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think rust uses u32 for these like when calling e.g. 2u64.pow(/* u32 here */)
a23e60d
to
b188e88
Compare
BREAKING CHANGE: concrete-commons DispersionParameter interface is modified
b188e88
to
b9c8bda
Compare
Description
Replace remove torus type generics by a function parameter log2_modulus in all relevant functions in concrete-npe.
Checklist
(Use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)