Skip to content

Commit

Permalink
Add packed_at() to PreProcessed Column Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Gali-StarkWare committed Jan 16, 2025
1 parent e9f0546 commit 1b92ae4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stwo_cairo_prover/crates/prover/src/cairo_air/preprocessed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ impl PreProcessedColumn {
PreProcessedColumn::Seq(column) => column.gen_column_simd(),
}
}

pub fn packed_at(&self, vec_row: usize) -> PackedM31 {
match self {
PreProcessedColumn::IsFirst(column) => column.packed_at(vec_row),
PreProcessedColumn::Seq(column) => column.packed_at(vec_row),
}
}
}

/// Returns column info for the preprocessed trace.
Expand Down

0 comments on commit 1b92ae4

Please sign in to comment.