From f0338fa0e24ce819cc0af2afbc33af44486a6b37 Mon Sep 17 00:00:00 2001 From: ledwards2225 Date: Tue, 21 Mar 2023 20:02:05 +0000 Subject: [PATCH] woops, fix gcc build --- .../barretenberg/honk/pcs/gemini/gemini.hpp | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/cpp/src/barretenberg/honk/pcs/gemini/gemini.hpp b/cpp/src/barretenberg/honk/pcs/gemini/gemini.hpp index 14e43d2177..bfef6ac791 100644 --- a/cpp/src/barretenberg/honk/pcs/gemini/gemini.hpp +++ b/cpp/src/barretenberg/honk/pcs/gemini/gemini.hpp @@ -73,8 +73,6 @@ template class MultilinearReductionScheme { using Commitment = typename Params::Commitment; using CommitmentAffine = typename Params::C; using Polynomial = barretenberg::Polynomial; - using OpeningPair = OpeningPair; - using OpeningClaim = OpeningClaim; public: /** @@ -171,16 +169,17 @@ template class MultilinearReductionScheme { // A₀₋(X) = F(X) - G(X)/r, s.t. A₀₋(-r) = A₀(-r) A_0_neg -= tmp; - std::vector fold_poly_opening_pairs; + std::vector> fold_poly_opening_pairs; fold_poly_opening_pairs.reserve(num_variables + 1); // Compute first opening pair {r, A₀(r)} - fold_poly_opening_pairs.emplace_back(OpeningPair{ r_challenge, fold_polynomials[0].evaluate(r_challenge) }); + fold_poly_opening_pairs.emplace_back( + OpeningPair{ r_challenge, fold_polynomials[0].evaluate(r_challenge) }); // Compute the remaining m opening pairs {−r^{2ˡ}, Aₗ(−r^{2ˡ})}, l = 0, ..., m-1. for (size_t l = 0; l < num_variables; ++l) { fold_poly_opening_pairs.emplace_back( - OpeningPair{ -r_squares[l], fold_polynomials[l + 1].evaluate(-r_squares[l]) }); + OpeningPair{ -r_squares[l], fold_polynomials[l + 1].evaluate(-r_squares[l]) }); } return { fold_poly_opening_pairs, std::move(fold_polynomials) }; @@ -199,11 +198,11 @@ template class MultilinearReductionScheme { * @return Fold polynomial opening claims: (r, A₀(r), C₀₊), (-r, A₀(-r), C₀₋), and * (Cⱼ, Aⱼ(-r^{2ʲ}), -r^{2}), j = [1, ..., m-1] */ - static std::vector reduce_verify(std::span mle_opening_point, /* u */ - const Fr batched_evaluation, /* all */ - Commitment& batched_f, /* unshifted */ - Commitment& batched_g, /* to-be-shifted */ - VerifierTranscript& transcript) + static std::vector> reduce_verify(std::span mle_opening_point, /* u */ + const Fr batched_evaluation, /* all */ + Commitment& batched_f, /* unshifted */ + Commitment& batched_g, /* to-be-shifted */ + VerifierTranscript& transcript) { const size_t num_variables = mle_opening_point.size(); @@ -235,17 +234,17 @@ template class MultilinearReductionScheme { // C₀_r_pos = ∑ⱼ ρʲ⋅[fⱼ] - r⁻¹⋅∑ⱼ ρᵏ⁺ʲ [gⱼ] auto [c0_r_pos, c0_r_neg] = compute_simulated_commitments(batched_f, batched_g, r); - std::vector fold_polynomial_opening_claims; + std::vector> fold_polynomial_opening_claims; fold_polynomial_opening_claims.reserve(num_variables + 1); // ( [A₀₊], r, A₀(r) ) - fold_polynomial_opening_claims.emplace_back(OpeningClaim{ { r, a_0_pos }, c0_r_pos }); + fold_polynomial_opening_claims.emplace_back(OpeningClaim{ { r, a_0_pos }, c0_r_pos }); // ( [A₀₋], -r, A₀(-r) ) - fold_polynomial_opening_claims.emplace_back(OpeningClaim{ { -r, evaluations[0] }, c0_r_neg }); + fold_polynomial_opening_claims.emplace_back(OpeningClaim{ { -r, evaluations[0] }, c0_r_neg }); for (size_t l = 0; l < num_variables - 1; ++l) { // ([A₀₋], −r^{2ˡ}, Aₗ(−r^{2ˡ}) ) fold_polynomial_opening_claims.emplace_back( - OpeningClaim{ { -r_squares[l + 1], evaluations[l + 1] }, commitments[l] }); + OpeningClaim{ { -r_squares[l + 1], evaluations[l + 1] }, commitments[l] }); } return fold_polynomial_opening_claims;