From c6de851d86673fbc30d0dee6d813c05ccbadaf60 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Thu, 24 Aug 2023 09:01:12 +0200 Subject: [PATCH] small-fix: fix_one_variable_helper not-parallel behavior --- arithmetic/src/multilinear_polynomial.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic/src/multilinear_polynomial.rs b/arithmetic/src/multilinear_polynomial.rs index 8e6780b..e674aaa 100644 --- a/arithmetic/src/multilinear_polynomial.rs +++ b/arithmetic/src/multilinear_polynomial.rs @@ -162,7 +162,7 @@ fn fix_one_variable_helper(data: &[F], nv: usize, point: &F) -> Vec // evaluate single variable of partial point from left to right #[cfg(not(feature = "parallel"))] for i in 0..(1 << (nv - 1)) { - res[i] = data[i] + (data[(i << 1) + 1] - data[i << 1]) * point; + res[i] = data[i << 1] + (data[(i << 1) + 1] - data[i << 1]) * point; } #[cfg(feature = "parallel")]