This commit is contained in:
Jean-Philippe Bossuat
2025-02-05 17:03:41 +01:00
parent c2e1480f4c
commit 70b70513fb
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ use rand_distr::{Distribution, Normal};
use sampling::source::Source;
pub trait Sampling {
/// Fills the first `limbs` limbs with uniform values in \[-2^{log_base2k}, 2^{log_base2k}\]
/// Fills the first `limbs` limbs with uniform values in \[-2^{log_base2k-1}, 2^{log_base2k-1}\]
fn fill_uniform(&mut self, log_base2k: usize, limbs: usize, source: &mut Source);
/// Adds vector sampled according to the provided distribution, scaled by 2^{-log_k} and bounded to \[-bound, bound\].

View File

@@ -1,5 +1,5 @@
use crate::ffi::svp;
use crate::{Free, Module, VecZnx, VecZnxDft};
use crate::{Module, VecZnx, VecZnxDft};
use crate::Infos;
use rand::seq::SliceRandom;