pub fn fold_highest_var_inplace<P: PackedField, Data: BufferData<P>>(
values: &mut FieldBuffer<P, Data>,
scalar: P::Scalar,
)Expand description
Fixes the highest variable of a multilinear to a value, in place.
g(X_0, ..., X_{n-2}) = f(X_0, ..., X_{n-2}, r)The result occupies the first half of the buffer. The buffer then reports one variable fewer.
ยงPreconditions
- the buffer must have at least one variable