Skip to content

Commit

Permalink
chore: remove debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND committed Oct 20, 2023
1 parent 5c77ef8 commit e6520a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/ntt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ mod tests {
fn test_extended_gcd() {
(2..11).for_each(|x| {
let inv = extended_gcd(x, 11);
println!("{} {}", x, inv);
assert_eq!((x * inv) % 11, 1);
});
}
Expand Down
5 changes: 0 additions & 5 deletions src/polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ impl Mul<Polynomial> for Polynomial {
* n
+ 1;
let c = working_modulus(n, M);
println!("consts -- {} {:?}", M, c);

v1.iter_mut().for_each(|x| {
if *x < 0 {
Expand All @@ -93,9 +92,6 @@ impl Mul<Polynomial> for Polynomial {
}
});

println!("v1 -- {:?}", v1);
println!("v2 -- {:?}", v2);

let a_forward = forward(v1, &c);
let b_forward = forward(v2, &c);

Expand All @@ -111,7 +107,6 @@ impl Mul<Polynomial> for Polynomial {
Right(_) => {}
});
mul.reverse();
let coef = inverse(mul.clone(), &c);
let coef = inverse(mul, &c)
.iter()
.map(|&x| if x > M / 2 { -(M - x.rem_euclid(M)) } else { x })
Expand Down

0 comments on commit e6520a8

Please sign in to comment.