Trait prio::flp::gadgets::ParallelSumGadget

source ·
pub trait ParallelSumGadget<F: FftFriendlyFieldElement, G>: Gadget<F> + Debug {
    // Required method
    fn new(inner: G, chunks: usize) -> Self;
}
Expand description

Trait for abstracting over ParallelSum.

Required Methods§

source

fn new(inner: G, chunks: usize) -> Self

Wraps inner into a sum gadget that calls it chunks many times, and adds the reuslts.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F, G> ParallelSumGadget<F, G> for ParallelSumMultithreaded<F, G>
where F: FftFriendlyFieldElement + Sync + Send, G: 'static + Gadget<F> + Clone + Sync + Send,

source§

impl<F: FftFriendlyFieldElement, G: 'static + Gadget<F>> ParallelSumGadget<F, G> for ParallelSum<F, G>