Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rw0x0 committed Sep 26, 2024
1 parent 5a0a587 commit bf32e73
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions co-noir/co-ultrahonk/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,23 @@ pub(crate) struct Polynomials<Shared: Default, Public: Default> {
pub(crate) precomputed: PrecomputedEntities<Polynomial<Public>>,
}

impl<Shared: Default, Public: Default> Polynomials<Shared, Public> {
impl<Shared: Clone + Default, Public: Clone + Default> Polynomials<Shared, Public> {
pub(crate) fn new(circuit_size: usize) -> Self {
let mut polynomials = Self::default();

todo!("Polys");
// Shifting is done at a later point
// polynomials
// .iter_mut()
// .for_each(|el| el.resize(circuit_size, Default::default()));
polynomials
.witness
.get_wires_mut()
.iter_mut()
.for_each(|el| el.resize(circuit_size, Default::default()));
polynomials
.witness
.lookup_read_counts_and_tags_mut()
.iter_mut()
.for_each(|el| el.resize(circuit_size, Default::default()));
polynomials.precomputed.iter_mut().for_each(|el| {
el.resize(circuit_size, Default::default());
});

polynomials
}
Expand Down

0 comments on commit bf32e73

Please sign in to comment.