From ce7d71d5fe6f6af26b44ff30128114b8326fce38 Mon Sep 17 00:00:00 2001 From: amit0365 Date: Sun, 1 Oct 2023 17:42:31 -0400 Subject: [PATCH] replace add with concat --- plonkish_backend/src/accumulation/protostar/hyperplonk.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plonkish_backend/src/accumulation/protostar/hyperplonk.rs b/plonkish_backend/src/accumulation/protostar/hyperplonk.rs index bd5662a0..af19e03a 100644 --- a/plonkish_backend/src/accumulation/protostar/hyperplonk.rs +++ b/plonkish_backend/src/accumulation/protostar/hyperplonk.rs @@ -216,7 +216,8 @@ where let l_sqrt = (2.0f64.powf(pp.num_vars as f64)).sqrt() as usize; let powers_of_zeta_first_poly = powers_of_zeta_poly((l_sqrt-1).ilog2() as usize, zeta); let powers_of_zeta_second_poly = powers_of_zeta_poly((l_sqrt-1).ilog2() as usize, zeta.pow(&[l_sqrt as u64])); - let powers_of_zeta_poly = powers_of_zeta_first_poly.add(&powers_of_zeta_second_poly); + let powers_of_zeta_poly = MultilinearPolynomial::new(powers_of_zeta_first_poly.evals().iter() + .chain(powers_of_zeta_second_poly.evals().iter()).cloned().collect()); end_timer(timer); let powers_of_zeta_comm =