Browse Source

small-fix: fix_one_variable_helper not-parallel behavior

main
arnaucube 1 year ago
parent
commit
c6de851d86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      arithmetic/src/multilinear_polynomial.rs

+ 1
- 1
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 // evaluate single variable of partial point from left to right
#[cfg(not(feature = "parallel"))] #[cfg(not(feature = "parallel"))]
for i in 0..(1 << (nv - 1)) { 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")] #[cfg(feature = "parallel")]

Loading…
Cancel
Save