From 7537193d45b49b38ad7dbe1c076da9d3f7625eed Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Mon, 31 Jul 2023 23:04:45 +0800 Subject: [PATCH] Generalise transpose So that it also works with eg `u64`, not just with field elements. --- plonky2/src/util/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonky2/src/util/mod.rs b/plonky2/src/util/mod.rs index d08f194d..9a54cea0 100644 --- a/plonky2/src/util/mod.rs +++ b/plonky2/src/util/mod.rs @@ -19,7 +19,7 @@ pub(crate) fn transpose_poly_values(polys: Vec>) - transpose(&poly_values) } -pub fn transpose(matrix: &[Vec]) -> Vec> { +pub fn transpose(matrix: &[Vec]) -> Vec> { let len = matrix[0].len(); (0..len) .into_par_iter()