Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
precomputed.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <string_view>
5
9
10namespace bb::avm2 {
11
12template <typename FF_> class precomputedImpl {
13 public:
14 using FF = FF_;
15
16 static constexpr std::array<size_t, 4> SUBRELATION_PARTIAL_LENGTHS = { 3, 3, 3, 3 };
17
18 template <typename ContainerOverSubrelations, typename AllEntities>
19 void static accumulate(ContainerOverSubrelations& evals,
20 const AllEntities& in,
21 [[maybe_unused]] const RelationParameters<FF>&,
22 [[maybe_unused]] const FF& scaling_factor);
23};
24
25template <typename FF> class precomputed : public Relation<precomputedImpl<FF>> {
26 public:
27 static constexpr const std::string_view NAME = "precomputed";
28
29 // Subrelation indices constants, to be used in tests.
30 static constexpr size_t SR_GRANULAR_SELECTORS_ON_RANGE_16 = 3;
31
32 static std::string get_subrelation_label(size_t index)
33 {
34#ifdef AVM_INCLUDE_COLUMN_INFORMATION
35 switch (index) {
37 return "GRANULAR_SELECTORS_ON_RANGE_16";
38 }
39#endif
40 return std::to_string(index);
41 }
42};
43
44} // namespace bb::avm2
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
static constexpr const std::string_view NAME
static constexpr size_t SR_GRANULAR_SELECTORS_ON_RANGE_16
static std::string get_subrelation_label(size_t index)
static constexpr std::array< size_t, 4 > SUBRELATION_PARTIAL_LENGTHS
static void accumulate(ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &, const FF &scaling_factor)
AvmFlavorSettings::FF FF
Definition field.hpp:10
std::string to_string(bb::avm2::ValueTag tag)
Container for parameters used by the grand product (permutation, lookup) Honk relations.