|
| template<size_t outer_idx = 0, size_t inner_idx = 0, class Operation > |
| static void | apply_to_tuple_of_tuples (auto &tuple, Operation &&operation) |
| | General purpose method for applying an operation to a tuple of tuples of Univariates.
|
| |
| static void | zero_univariates (auto &tuple) |
| | Set all coefficients of Univariates to zero.
|
| |
| static void | scale_univariates (auto &tuple, const FF &challenge, FF ¤t_scalar) |
| | Scale Univaraites by consecutive powers of the provided challenge.
|
| |
| template<typename... T> |
| static constexpr void | add_tuples (std::tuple< T... > &tuple_1, const std::tuple< T... > &tuple_2) |
| | Componentwise addition of two tuples.
|
| |
| template<typename Tuple , std::size_t Index = 0> |
| static constexpr void | add_nested_tuples (Tuple &tuple_1, const Tuple &tuple_2) |
| | Componentwise addition of nested tuples (tuples of tuples)
|
| |
| template<typename Parameters , size_t relation_idx = 0> |
| static void | accumulate_relation_evaluations (PolynomialEvaluations evaluations, RelationEvaluations &relation_evaluations, const Parameters &relation_parameters, const FF &partial_evaluation_constant) |
| | Calculate the contribution of each relation to the expected value of the full Honk relation.
|
| |
| template<size_t idx = 0> |
| static void | zero_elements (auto &tuple) |
| | Set each element in a tuple of arrays to zero.
|
| |
| static void | scale_and_batch_elements (auto &tuple, const FF &challenge, FF current_scalar, FF &result) |
| | Scale elements by consecutive powers of the challenge then sum.
|
| |
| template<typename Operation , size_t idx = 0, typename... Ts> |
| static void | apply_to_tuple_of_arrays (Operation &&operation, std::tuple< Ts... > &tuple) |
| | General purpose method for applying a tuple of arrays (of FFs)
|
| |
template<typename Parameters , size_t relation_idx = 0>
| static void barretenberg::RelationUtils< Flavor >::accumulate_relation_evaluations |
( |
PolynomialEvaluations |
evaluations, |
|
|
RelationEvaluations & |
relation_evaluations, |
|
|
const Parameters & |
relation_parameters, |
|
|
const FF & |
partial_evaluation_constant |
|
) |
| |
|
inlinestatic |
Calculate the contribution of each relation to the expected value of the full Honk relation.
For each relation, use the purported values (supplied by the prover) of the multivariates to calculate a contribution to the purported value of the full Honk relation. These are stored in evaluations. Adding these together, with appropriate scaling factors, produces the expected value of the full Honk relation. This value is checked against the final value of the target total sum (called sigma_0 in the thesis).