|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Integer type that stores each bit as a separate digit in the given base. Supports addition with single-pass carry propagation. Used to build plookup tables for bitwise operations (XOR, AND) where two sparse_ints are added and the resulting per-digit values encode the operation's truth table. More...
#include <sparse_form.hpp>
Public Member Functions | |
| sparse_int (const uint64_t input=0) | |
| sparse_int (const sparse_int &other) noexcept=default | |
| sparse_int (sparse_int &&other) noexcept=default | |
| sparse_int & | operator= (const sparse_int &other) noexcept=default |
| sparse_int & | operator= (sparse_int &&other) noexcept=default |
| ~sparse_int () noexcept=default | |
| sparse_int | operator+ (const sparse_int &other) const |
| sparse_int | operator+= (const sparse_int &other) |
| uint64_t | get_value () const |
| uint64_t | get_sparse_value () const |
| const std::array< uint64_t, num_bits > & | get_limbs () const |
Private Attributes | |
| std::array< uint64_t, num_bits > | limbs |
| uint64_t | value |
Integer type that stores each bit as a separate digit in the given base. Supports addition with single-pass carry propagation. Used to build plookup tables for bitwise operations (XOR, AND) where two sparse_ints are added and the resulting per-digit values encode the operation's truth table.
Definition at line 135 of file sparse_form.hpp.
|
inline |
Definition at line 137 of file sparse_form.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
Definition at line 190 of file sparse_form.hpp.
|
inline |
Definition at line 180 of file sparse_form.hpp.
|
inline |
Definition at line 178 of file sparse_form.hpp.
|
inline |
Definition at line 153 of file sparse_form.hpp.
|
inline |
Definition at line 172 of file sparse_form.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
private |
Definition at line 193 of file sparse_form.hpp.
|
private |
Definition at line 194 of file sparse_form.hpp.