mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 06:43:07 +00:00
Merge pull request #1155 from 0xmozak/matthias/generalise-transpose
Generalise transpose
This commit is contained in:
commit
d8e314bc5c
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user