Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekvpandya committed Oct 6, 2023
1 parent e5d48cf commit 0646fc5
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions poseidon2-starky/src/plonky2/stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,45 +150,6 @@ where
out
}

// linear layer (degree = 1)
// fn matmul_external12_constraints<
// F: RichField + Extendable<D>,
// const D: usize,
// FE,
// P,
// const D2: usize,
// const STATE_SIZE: usize,
// >(
// state: &[P; STATE_SIZE],
// ) -> [P; STATE_SIZE]
// where
// FE: FieldExtension<D2, BaseField = F>,
// P: PackedField<Scalar = FE>,
// {
// assert_eq!(STATE_SIZE, 12);
// let mut out = [P::ZEROS; STATE_SIZE];

// for i in 0..8 {
// for j in 0..4 {
// out[i] = if i < 4 {
// out[i] + state[j] * FE::from_canonical_usize(M4[i][j])
// } else {
// out[i] + state[j + 4] * FE::from_canonical_usize(M4[i - 4][j])
// }
// }
// }

// let mut stored = [P::ZEROS; 4];
// for i in 0..4 {
// stored[i] = out[i] + out[4 + i];
// }
// for i in 0..STATE_SIZE {
// out[i] += stored[i % 4];
// }

// out
// }

// degree: 1
fn matmul_internal12_constraints<
F: RichField + Extendable<D>,
Expand Down

0 comments on commit 0646fc5

Please sign in to comment.