Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multithreaded assigner #57

Closed
wants to merge 9 commits into from
AndreyMlashkin marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <iostream>
#include <iterator>

#include <nil/crypto3/container/sparse_vector.hpp>
#include <nil/parallel-crypto3/container/sparse_vector.hpp>

namespace nil {
namespace crypto3 {
Expand Down
AndreyMlashkin marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <boost/variant.hpp>

#include <nil/crypto3/hash/type_traits.hpp>
#include <nil/crypto3/container/merkle/tree.hpp>
#include <nil/parallel-crypto3/container/merkle/tree.hpp>

namespace nil {
namespace crypto3 {
Expand Down
AndreyMlashkin marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include <nil/crypto3/hash/type_traits.hpp>
#include <nil/crypto3/hash/algorithm/hash.hpp>
#include <nil/crypto3/container/merkle/node.hpp>
#include <nil/parallel-crypto3/container/merkle/node.hpp>

#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#ifndef CRYPTO3_MATH_CALCULATE_DOMAIN_SET_HPP
#define CRYPTO3_MATH_CALCULATE_DOMAIN_SET_HPP

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/algorithms/make_evaluation_domain.hpp>

#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
#ifndef CRYPTO3_MATH_MAKE_EVALUATION_DOMAIN_HPP
#define CRYPTO3_MATH_MAKE_EVALUATION_DOMAIN_HPP

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/crypto3/math/domains/step_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/step_radix2_domain.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

#include <vector>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>

#include <nil/crypto3/math/polynomial/basis_change.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/basis_change.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

#include <vector>

#include <nil/crypto3/math/detail/field_utils.hpp>
#include <nil/parallel-crypto3/math/detail/field_utils.hpp>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/actor/core/parallelization_utils.hpp>

namespace nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#include <nil/crypto3/algebra/type_traits.hpp>

#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/detail/field_utils.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/detail/field_utils.hpp>

#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <vector>

#include <boost/multiprecision/integer.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

#include <vector>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

#include <vector>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>

#include <nil/crypto3/math/polynomial/basis_change.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/basis_change.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

#include <vector>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <algorithm>
#include <vector>

#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/crypto3/math/detail/field_utils.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/parallel-crypto3/math/detail/field_utils.hpp>
#include <nil/crypto3/detail/type_traits.hpp>

#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <algorithm>
#include <vector>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/crypto3/math/polynomial/xgcd.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/xgcd.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <vector>

#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#ifndef CRYPTO3_MATH_LAGRANGE_INTERPOLATION_HPP
#define CRYPTO3_MATH_LAGRANGE_INTERPOLATION_HPP

#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/algorithms/make_evaluation_domain.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <algorithm>
#include <vector>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
#include <iterator>
#include <unordered_map>

#include <nil/crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

#include <nil/actor/core/thread_pool.hpp>
#include <nil/actor/core/parallelization_utils.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <algorithm>
#include <vector>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <string_view>

namespace nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <algorithm>
#include <vector>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <nil/actor/core/parallelization_utils.hpp>

namespace nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#ifndef CRYPTO3_MATH_POLYNOMIAL_SHIFT_HPP
#define CRYPTO3_MATH_POLYNOMIAL_SHIFT_HPP

#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/actor/core/parallelization_utils.hpp>

namespace nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <boost/math/tools/polynomial_gcd.hpp>
#include <boost/integer/extended_euclidean.hpp>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>

namespace nil {
namespace crypto3 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@

#include <vector>

#include <nil/crypto3/math/domains/evaluation_domain.hpp>
#include <nil/crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/crypto3/math/domains/step_radix2_domain.hpp>

#include <nil/crypto3/math/detail/field_utils.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/parallel-crypto3/math/domains/evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/step_radix2_domain.hpp>

#include <nil/parallel-crypto3/math/detail/field_utils.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial_dfs.hpp>

namespace nil {
namespace crypto3 {
Expand Down
12 changes: 6 additions & 6 deletions parallel-crypto3/libs/parallel-math/test/basic_radix2_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@


#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>
#include <nil/crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/crypto3/math/polynomial/shift.hpp>
#include <nil/crypto3/math/algorithms/unity_root.hpp>
#include <nil/crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>
#include <nil/parallel-crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/parallel-crypto3/math/polynomial/shift.hpp>
#include <nil/parallel-crypto3/math/algorithms/unity_root.hpp>
#include <nil/parallel-crypto3/math/domains/detail/basic_radix2_domain_aux.hpp>

#include <nil/crypto3/algebra/random_element.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <boost/timer/timer.hpp>

#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>
#include <nil/crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial_dfs.hpp>
#include <nil/crypto3/random/algebraic_engine.hpp>


Expand Down
16 changes: 8 additions & 8 deletions parallel-crypto3/libs/parallel-math/test/evaluation_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@

#include <nil/crypto3/algebra/random_element.hpp>

#include <nil/crypto3/math/coset.hpp>
#include <nil/crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/crypto3/math/domains/step_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/coset.hpp>
#include <nil/parallel-crypto3/math/domains/arithmetic_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/basic_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/extended_radix2_domain.hpp>
#include <nil/parallel-crypto3/math/domains/geometric_sequence_domain.hpp>
#include <nil/parallel-crypto3/math/domains/step_radix2_domain.hpp>

#include <nil/crypto3/math/algorithms/make_evaluation_domain.hpp>
#include <nil/parallel-crypto3/math/algorithms/make_evaluation_domain.hpp>

#include <nil/crypto3/math/polynomial/evaluate.hpp>
#include <nil/parallel-crypto3/math/polynomial/evaluate.hpp>

#include <typeinfo>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include <nil/crypto3/algebra/fields/bls12/base_field.hpp>
#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>

#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/crypto3/math/kronecker_substitution.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/kronecker_substitution.hpp>

using namespace nil::crypto3::algebra;
using namespace nil::crypto3::math;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>
#include <nil/crypto3/algebra/random_element.hpp>

#include <nil/crypto3/math/polynomial/lagrange_interpolation.hpp>
#include <nil/parallel-crypto3/math/polynomial/lagrange_interpolation.hpp>

using namespace nil::crypto3::algebra;
using namespace nil::crypto3::math;
Expand Down
2 changes: 1 addition & 1 deletion parallel-crypto3/libs/parallel-math/test/polynomial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>

#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>

using namespace nil::crypto3::algebra;
using namespace nil::crypto3::math;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@

#include <nil/crypto3/algebra/fields/arithmetic_params/bls12.hpp>

#include <nil/crypto3/math/polynomial/polynomial.hpp>
#include <nil/crypto3/math/polynomial/basic_operations.hpp>
#include <nil/crypto3/math/polynomial/xgcd.hpp>
#include <nil/parallel-crypto3/math/polynomial/polynomial.hpp>
#include <nil/parallel-crypto3/math/polynomial/basic_operations.hpp>
#include <nil/parallel-crypto3/math/polynomial/xgcd.hpp>

using namespace nil::crypto3::algebra;
using namespace nil::crypto3::math;
Expand Down
Loading
Loading