28 template <
typename AllEntities>
inline static bool skip(
const AllEntities& in)
30 return (in.w_non_shifted_accumulator.is_zero() && in.w_shifted_accumulator.is_zero()) ||
31 (in.w_evaluations_accumulator.is_zero());
42 template <
typename ContainerOverSubrelations,
typename AllEntities>
43 inline static void accumulate(ContainerOverSubrelations& evals,
44 const AllEntities& in,
46 [[maybe_unused]]
const FF& scaling_factor = {})
50 auto w_non_shifted_accumulator = Accumulator(in.w_non_shifted_accumulator);
51 auto w_evaluations_accumulator = Accumulator(in.w_evaluations_accumulator);
52 auto w_shifted_accumulator = Accumulator(in.w_shifted_accumulator);
54 std::get<0>(evals) += (w_non_shifted_accumulator * w_evaluations_accumulator);
55 std::get<1>(evals) += (w_shifted_accumulator * w_evaluations_accumulator);
73 template <
typename AllEntities>
static bool skip(
const AllEntities& in)
75 return (in.w_non_shifted_accumulator.is_zero() && in.w_non_shifted_instance.is_zero() &&
76 in.w_shifted_accumulator.is_zero() && in.w_shifted_instance.is_zero()) ||
77 (in.w_evaluations_accumulator.is_zero() && in.w_evaluations_instance.is_zero());
88 template <
typename ContainerOverSubrelations,
typename AllEntities>
90 const AllEntities& in,
92 [[maybe_unused]]
const FF& scaling_factor = {})
96 auto w_non_shifted_instance = Accumulator(in.w_non_shifted_instance);
97 auto w_evaluations_instance = Accumulator(in.w_evaluations_instance);
98 auto w_shifted_instance = Accumulator(in.w_shifted_instance);
100 std::get<0>(evals) += (w_non_shifted_instance * w_evaluations_instance);
101 std::get<1>(evals) += (w_shifted_instance * w_evaluations_instance);
105template <
typename FF>
107template <
typename FF>
static bool skip(const AllEntities &in)
Returns true if the contribution from all subrelations for the provided inputs is identically zero.
static constexpr std::array< bool, 2 > SUBRELATION_LINEARLY_INDEPENDENT
static constexpr std::array< size_t, 2 > SUBRELATION_PARTIAL_LENGTHS
static void accumulate(ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &relation_parameters={}, const FF &scaling_factor={})
Expression for the Multilinear Batching accumulator gate.
static constexpr std::array< bool, 2 > SUBRELATION_LINEARLY_INDEPENDENT
static bool skip(const AllEntities &in)
Returns true if the contribution from all subrelations for the provided inputs is identically zero.
static void accumulate(ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &relation_parameters={}, const FF &scaling_factor={})
Expression for the Multilinear Batching gate.
static constexpr std::array< size_t, 2 > SUBRELATION_PARTIAL_LENGTHS
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Container for parameters used by the grand product (permutation, lookup) Honk relations.