Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
context_stack_impl.hpp
Go to the documentation of this file.
1
// AUTOGENERATED FILE
2
#pragma once
3
4
#include "
barretenberg/vm2/constraining/relations/relation_macros.hpp
"
5
#include "
barretenberg/vm2/generated/relations/context_stack.hpp
"
6
7
namespace
bb::avm2
{
8
9
template
<
typename
FF_>
10
template
<
typename
ContainerOverSubrelations,
typename
AllEntities>
11
void
context_stackImpl<FF_>::accumulate
(ContainerOverSubrelations& evals,
12
const
AllEntities& in,
13
[[maybe_unused]]
const
RelationParameters<FF_>
&,
14
[[maybe_unused]]
const
FF_& scaling_factor)
15
{
16
using
C
=
ColumnAndShifts
;
17
18
{
19
using
View =
typename
std::tuple_element_t<0, ContainerOverSubrelations>::View;
20
auto
tmp =
21
static_cast<
View
>
(in.get(C::context_stack_sel)) * (
FF
(1) -
static_cast<
View
>
(in.get(C::context_stack_sel)));
22
std::get<0>
(evals) += (tmp * scaling_factor);
23
}
24
}
25
26
}
// namespace bb::avm2
bb::avm2::context_stackImpl::accumulate
static void accumulate(ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &, const FF &scaling_factor)
Definition
context_stack_impl.hpp:11
context_stack.hpp
bb::avm2
Definition
dbs.cpp:19
bb::avm2::Column
Column
Definition
columns.hpp:31
bb::avm2::ColumnAndShifts
ColumnAndShifts
Definition
columns.hpp:34
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
relation_macros.hpp
bb::RelationParameters
Container for parameters used by the grand product (permutation, lookup) Honk relations.
Definition
relation_parameters.hpp:19
src
barretenberg
vm2
generated
relations
context_stack_impl.hpp
Generated by
1.9.8