File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ namespace cp_algo::math::fft {
33
33
base step = bpow (factor, n);
34
34
for (size_t i = 0 ; i < std::min (n, size (a)); i++) {
35
35
auto splt = [&](size_t i, auto mul) {
36
- auto ai = i < size (a) ? (a[i] * mul).getr () : 0 ;
36
+ auto ai = i < size (a) ? (a[i] * mul).rem () : 0 ;
37
37
auto quo = ai / split;
38
38
auto rem = ai % split;
39
39
return std::pair{(ftype)rem, (ftype)quo};
@@ -212,6 +212,7 @@ namespace cp_algo::math::fft {
212
212
b0.resize (n); b1.resize (n);
213
213
auto a01 = to<std::vector>(std::views::zip_transform (std::plus{}, a0, a1));
214
214
auto b01 = to<std::vector>(std::views::zip_transform (std::plus{}, b0, b1));
215
+ checkpoint (" karatsuba split" );
215
216
mul (a0, b0);
216
217
mul (a1, b1);
217
218
mul (a01, b01);
You can’t perform that action at this time.
0 commit comments