We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5596fb1 commit 23aabb1Copy full SHA for 23aabb1
cp-algo/math/cvector.hpp
@@ -93,8 +93,8 @@ namespace cp_algo::math::fft {
93
point cur;
94
point arg = root(n, 1);
95
for(size_t i = 0; i < m; i++) {
96
- if(i % 32 == 0 || n < pre_roots) {
97
- cur = root(n, i);
+ if(i % 32 == 0) {
+ cur = root(n / 32, i / 32);
98
} else {
99
cur *= arg;
100
}
@@ -207,7 +207,7 @@ namespace cp_algo::math::fft {
207
208
checkpoint("fft");
209
210
- static constexpr size_t pre_roots = 1 << 14;
+ static constexpr size_t pre_roots = 1 << 15;
211
static constexpr size_t pre_evals = 1 << 16;
212
static constexpr std::array<point, pre_roots> roots = []() {
213
std::array<point, pre_roots> res = {};
0 commit comments