diff --git a/src/gates/reducing.rs b/src/gates/reducing.rs index 65b09d60..ebcd5cac 100644 --- a/src/gates/reducing.rs +++ b/src/gates/reducing.rs @@ -10,6 +10,7 @@ use crate::target::Target; use crate::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase}; use crate::witness::PartialWitness; +/// Computes `sum alpha^i c_i` for a vector `c_i` of `num_coeffs` elements of the base field. #[derive(Debug, Clone)] pub struct ReducingGate { pub num_coeffs: usize, diff --git a/src/util/reducing.rs b/src/util/reducing.rs index ae15ef4b..1b01763a 100644 --- a/src/util/reducing.rs +++ b/src/util/reducing.rs @@ -92,6 +92,7 @@ impl ReducingFactorTarget { Self { base, count: 0 } } + /// Reduces a length `n` vector of `Target`s using `n/21` `ReducingGate`s (with 33 routed wires and 126 wires). pub fn reduce_base( &mut self, terms: &[Target],