Skip to content

Commit

Permalink
dense_mlpoly.rs: Fix bound functions (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
asn-d6 authored Sep 30, 2024
1 parent f36b265 commit f65cbea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dense_mlpoly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ impl DensePolynomial {
for i in 0..n {
self.Z[i] = self.Z[i] + r * (self.Z[i + n] - self.Z[i]);
}
self.Z.truncate(n); // Resize the vector Z to the new length
self.num_vars -= 1;
self.len = n;
}
Expand All @@ -225,6 +226,7 @@ impl DensePolynomial {
for i in 0..n {
self.Z[i] = self.Z[2 * i] + r * (self.Z[2 * i + 1] - self.Z[2 * i]);
}
self.Z.truncate(n); // Resize the vector Z to the new length
self.num_vars -= 1;
self.len = n;
}
Expand Down

0 comments on commit f65cbea

Please sign in to comment.