Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <accumulation_vector.hpp>
Public Member Functions | |
accumulation_vector ()=default | |
accumulation_vector (const accumulation_vector< T > &other)=default | |
accumulation_vector (accumulation_vector< T > &&other)=default | |
accumulation_vector (T &&first, sparse_vector< T > &&rest) | |
accumulation_vector (T &&first, std::vector< T > &&v) | |
accumulation_vector (std::vector< T > &&v) | |
accumulation_vector< T > & | operator= (const accumulation_vector< T > &other)=default |
accumulation_vector< T > & | operator= (accumulation_vector< T > &&other)=default |
bool | operator== (const accumulation_vector< T > &other) const |
bool | is_fully_accumulated () const |
size_t | domain_size () const |
size_t | size () const |
size_t | size_in_bits () const |
template<typename FieldT > | |
accumulation_vector< T > | accumulate_chunk (const typename std::vector< FieldT >::const_iterator &it_begin, const typename std::vector< FieldT >::const_iterator &it_end, const size_t offset) const |
Public Attributes | |
T | first |
sparse_vector< T > | rest |
An accumulation vector comprises an accumulation value and a sparse vector. The method "accumulate_chunk" allows one to accumlate portions of the sparse vector into the accumualation value.
Definition at line 21 of file accumulation_vector.hpp.
|
default |
|
default |
|
default |
|
inline |
|
inline |
Definition at line 47 of file accumulation_vector.hpp.
|
inline |
Definition at line 51 of file accumulation_vector.hpp.
accumulation_vector<T> libsnark::accumulation_vector< T >::accumulate_chunk | ( | const typename std::vector< FieldT >::const_iterator & | it_begin, |
const typename std::vector< FieldT >::const_iterator & | it_end, | ||
const size_t | offset | ||
) | const |
size_t libsnark::accumulation_vector< T >::domain_size | ( | ) | const |
bool libsnark::accumulation_vector< T >::is_fully_accumulated | ( | ) | const |
|
default |
|
default |
bool libsnark::accumulation_vector< T >::operator== | ( | const accumulation_vector< T > & | other | ) | const |
size_t libsnark::accumulation_vector< T >::size | ( | ) | const |
size_t libsnark::accumulation_vector< T >::size_in_bits | ( | ) | const |
T libsnark::accumulation_vector< T >::first |
Definition at line 37 of file accumulation_vector.hpp.
sparse_vector<T> libsnark::accumulation_vector< T >::rest |
Definition at line 38 of file accumulation_vector.hpp.