mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-27 12:22:05 +00:00
Change zip order
This commit is contained in:
parent
9a54540116
commit
d9b0778eef
@ -43,11 +43,11 @@ impl<F: Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
|||||||
// The answer is gotten by interpolating {(x*g^i, P(x*g^i))} and evaluating at beta.
|
// The answer is gotten by interpolating {(x*g^i, P(x*g^i))} and evaluating at beta.
|
||||||
let points = g
|
let points = g
|
||||||
.powers()
|
.powers()
|
||||||
.zip(evals)
|
.map(|y| {
|
||||||
.map(|(y, v)| {
|
|
||||||
let yc = self.constant(y);
|
let yc = self.constant(y);
|
||||||
(self.mul(coset_start, yc), v)
|
self.mul(coset_start, yc)
|
||||||
})
|
})
|
||||||
|
.zip(evals)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
self.interpolate(&points, beta)
|
self.interpolate(&points, beta)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user