mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 23:03:08 +00:00
Generalise transpose
So that it also works with eg `u64`, not just with field elements.
This commit is contained in:
parent
5b8740a729
commit
7537193d45
@ -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