File tree Expand file tree Collapse file tree 5 files changed +47
-15
lines changed Expand file tree Collapse file tree 5 files changed +47
-15
lines changed Original file line number Diff line number Diff line change 26
26
#ifndef EVALUATION_DOMAIN_HPP_
27
27
#define EVALUATION_DOMAIN_HPP_
28
28
29
- #include < memory>
30
29
#include < vector>
31
30
32
31
namespace libfqfft {
@@ -99,15 +98,6 @@ class evaluation_domain {
99
98
virtual void divide_by_Z_on_coset (std::vector<FieldT> &P) = 0;
100
99
};
101
100
102
- /* *
103
- * Return an evaluation domain object in which the domain S has size |S| >= min_size.
104
- * The function chooses from different supported domains, depending on min_size.
105
- */
106
- template <typename FieldT>
107
- std::shared_ptr<evaluation_domain<FieldT> > get_evaluation_domain (const size_t min_size);
108
-
109
101
} // libfqfft
110
102
111
- #include < libfqfft/evaluation_domain/evaluation_domain.tcc>
112
-
113
103
#endif // EVALUATION_DOMAIN_HPP_
Original file line number Diff line number Diff line change
1
+ /* * @file
2
+ *****************************************************************************
3
+
4
+ A convenience method for choosing an evaluation domain
5
+
6
+ Returns an evaluation domain object in which the domain S has size
7
+ |S| >= min_size.
8
+ The function chooses from different supported domains, depending on min_size.
9
+
10
+ *****************************************************************************
11
+ * @author This file is part of libfqfft, developed by SCIPR Lab
12
+ * and contributors (see AUTHORS).
13
+ * @copyright MIT license (see LICENSE file)
14
+ *****************************************************************************/
15
+
16
+ #ifndef GET_EVALUATION_DOMAIN_HPP_
17
+ #define GET_EVALUATION_DOMAIN_HPP_
18
+
19
+ #include < memory>
20
+
21
+ #include < libfqfft/evaluation_domain/evaluation_domain.hpp>
22
+
23
+ namespace libfqfft {
24
+
25
+ template <typename FieldT>
26
+ std::shared_ptr<evaluation_domain<FieldT> > get_evaluation_domain (const size_t min_size);
27
+
28
+ } // libfqfft
29
+
30
+ #include < libfqfft/evaluation_domain/get_evaluation_domain.tcc>
31
+
32
+ #endif // GET_EVALUATION_DOMAIN_HPP_
Original file line number Diff line number Diff line change 16
16
* @copyright MIT license (see LICENSE file)
17
17
*****************************************************************************/
18
18
19
- #ifndef EVALUATION_DOMAIN_TCC_
20
- #define EVALUATION_DOMAIN_TCC_
19
+ #ifndef GET_EVALUATION_DOMAIN_TCC_
20
+ #define GET_EVALUATION_DOMAIN_TCC_
21
21
22
22
#include < libfqfft/evaluation_domain/domains/arithmetic_sequence_domain.hpp>
23
23
#include < libfqfft/evaluation_domain/domains/basic_radix2_domain.hpp>
24
24
#include < libfqfft/evaluation_domain/domains/extended_radix2_domain.hpp>
25
25
#include < libfqfft/evaluation_domain/domains/geometric_sequence_domain.hpp>
26
26
#include < libfqfft/evaluation_domain/domains/step_radix2_domain.hpp>
27
+ #include < libfqfft/evaluation_domain/evaluation_domain.hpp>
27
28
#include < libfqfft/tools/exceptions.hpp>
28
29
29
30
namespace libfqfft {
@@ -52,4 +53,4 @@ std::shared_ptr<evaluation_domain<FieldT> > get_evaluation_domain(const size_t m
52
53
53
54
} // libfqfft
54
55
55
- #endif // EVALUATION_DOMAIN_TCC_
56
+ #endif // GET_EVALUATION_DOMAIN_TCC_
Original file line number Diff line number Diff line change 29
29
#include < libff/common/double.hpp>
30
30
#include < omp.h>
31
31
32
- #include < libfqfft/evaluation_domain/evaluation_domain.hpp> // this also includes all children of evaluation_domain
32
+ #include < libfqfft/evaluation_domain/domains/arithmetic_sequence_domain.hpp>
33
+ #include < libfqfft/evaluation_domain/domains/basic_radix2_domain.hpp>
34
+ #include < libfqfft/evaluation_domain/domains/extended_radix2_domain.hpp>
35
+ #include < libfqfft/evaluation_domain/domains/geometric_sequence_domain.hpp>
36
+ #include < libfqfft/evaluation_domain/domains/step_radix2_domain.hpp>
33
37
34
38
using namespace libfqfft ;
35
39
Original file line number Diff line number Diff line change 5
5
* @copyright MIT license (see LICENSE file)
6
6
*****************************************************************************/
7
7
8
+ #include < memory>
8
9
#include < vector>
9
10
10
11
#include < gtest/gtest.h>
11
12
#include < libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
12
13
#include < stdint.h>
13
14
14
- #include < libfqfft/evaluation_domain/evaluation_domain.hpp> // this also includes all children of evaluation_domain
15
+ #include < libfqfft/evaluation_domain/domains/arithmetic_sequence_domain.hpp>
16
+ #include < libfqfft/evaluation_domain/domains/basic_radix2_domain.hpp>
17
+ #include < libfqfft/evaluation_domain/domains/extended_radix2_domain.hpp>
18
+ #include < libfqfft/evaluation_domain/domains/geometric_sequence_domain.hpp>
19
+ #include < libfqfft/evaluation_domain/domains/step_radix2_domain.hpp>
15
20
#include < libfqfft/polynomial_arithmetic/naive_evaluate.hpp>
16
21
#include < libfqfft/tools/exceptions.hpp>
17
22
You can’t perform that action at this time.
0 commit comments