Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::Accumulator< Fr > Struct Template Reference

#include <accumulator.hpp>

Public Types

using Vec = VectorField< typename Fr::Params >
 

Public Member Functions

 Accumulator ()
 
void operator+= (const Fr &v)
 
void operator+= (const Vec &v)
 
Fr reduce () const
 

Public Attributes

Fr scalar_acc
 
Vec vector_acc
 

Detailed Description

template<typename Fr>
struct bb::Accumulator< Fr >

Definition at line 39 of file accumulator.hpp.

Member Typedef Documentation

◆ Vec

template<typename Fr >
using bb::Accumulator< Fr >::Vec = VectorField<typename Fr::Params>

Definition at line 40 of file accumulator.hpp.

Constructor & Destructor Documentation

◆ Accumulator()

template<typename Fr >
bb::Accumulator< Fr >::Accumulator ( )
inline

Definition at line 45 of file accumulator.hpp.

Member Function Documentation

◆ operator+=() [1/2]

template<typename Fr >
void bb::Accumulator< Fr >::operator+= ( const Fr v)
inline

Definition at line 50 of file accumulator.hpp.

◆ operator+=() [2/2]

template<typename Fr >
void bb::Accumulator< Fr >::operator+= ( const Vec v)
inline

Definition at line 52 of file accumulator.hpp.

◆ reduce()

template<typename Fr >
Fr bb::Accumulator< Fr >::reduce ( ) const
inline

Definition at line 57 of file accumulator.hpp.

Member Data Documentation

◆ scalar_acc

template<typename Fr >
Fr bb::Accumulator< Fr >::scalar_acc

Definition at line 42 of file accumulator.hpp.

◆ vector_acc

template<typename Fr >
Vec bb::Accumulator< Fr >::vector_acc

Definition at line 43 of file accumulator.hpp.


The documentation for this struct was generated from the following file: