Merge pull request #1155 from 0xmozak/matthias/generalise-transpose

Generalise transpose
This commit is contained in:
Jacqueline Nabaglo 2023-07-31 19:00:16 -07:00 committed by GitHub
commit d8e314bc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ pub(crate) fn transpose_poly_values<F: Field>(polys: Vec<PolynomialValues<F>>) -
transpose(&poly_values)
}
pub fn transpose<F: Field>(matrix: &[Vec<F>]) -> Vec<Vec<F>> {
pub fn transpose<T: Send + Sync + Copy>(matrix: &[Vec<T>]) -> Vec<Vec<T>> {
let len = matrix[0].len();
(0..len)
.into_par_iter()