mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
Update comment
This commit is contained in:
parent
f325586beb
commit
19140e39b2
@ -35,8 +35,7 @@ impl<F: Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
|||||||
// The evaluation vector needs to be reordered first.
|
// The evaluation vector needs to be reordered first.
|
||||||
let mut evals = last_evals.to_vec();
|
let mut evals = last_evals.to_vec();
|
||||||
reverse_index_bits_in_place(&mut evals);
|
reverse_index_bits_in_place(&mut evals);
|
||||||
// Want `g^(arity - rev_old_x_index)` as in the out-of-circuit version.
|
// Want `g^(arity - rev_old_x_index)` as in the out-of-circuit version. Compute it as `(g^-1)^rev_old_x_index`.
|
||||||
// Compute it as `g^(arity-1-rev_old_x_index) * g`, where the first term is gotten using two's complement.
|
|
||||||
let start = self.exp_from_bits(g_inv_t, old_x_index_bits.iter().rev());
|
let start = self.exp_from_bits(g_inv_t, old_x_index_bits.iter().rev());
|
||||||
let coset_start = self.mul(start, x);
|
let coset_start = self.mul(start, x);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user