mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 17:53:06 +00:00
Power of two length
This commit is contained in:
parent
2e59ceccc4
commit
1ecdb96a6b
@ -3,6 +3,7 @@ use alloc::vec::Vec;
|
||||
|
||||
use itertools::Itertools;
|
||||
use maybe_rayon::*;
|
||||
use plonky2_field::types::Field;
|
||||
|
||||
use crate::field::extension::Extendable;
|
||||
use crate::field::fft::FftRootTable;
|
||||
@ -188,7 +189,8 @@ impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize>
|
||||
&format!("reduce batch of {} polynomials", polynomials.len()),
|
||||
alpha.reduce_polys_base(polys_coeff)
|
||||
);
|
||||
let quotient = composition_poly.divide_by_linear(*point);
|
||||
let mut quotient = composition_poly.divide_by_linear(*point);
|
||||
quotient.coeffs.push(F::Extension::ZERO); // pad back to power of two
|
||||
alpha.shift_poly(&mut final_poly);
|
||||
final_poly += quotient;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user