Skip to content

Commit

Permalink
Update poly/src/evaluations/multivariate/multilinear/dense.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagician committed Jun 19, 2024
1 parent 7e53e92 commit 4ecd7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poly/src/evaluations/multivariate/multilinear/dense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<F: Field> DenseMultilinearExtension<F> {
///
/// assert_eq!(eval_combined, (Fr::one() - point[2]) * eval_1 + point[2] * eval_2);
pub fn concat(polys: impl IntoIterator<Item = impl AsRef<Self>> + Clone) -> Self {
// for efficient allocation into the merged vector, we need to know the total length
// for efficient allocation into the concatenated vector, we need to know the total length
// in advance, so we actually need to iterate twice. Cloning the iterator is cheap.
let polys_iter_cloned = polys.clone().into_iter();

Expand Down

0 comments on commit 4ecd7a8

Please sign in to comment.