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 e73b6d0 commit aa48020Copy full SHA for aa48020
cp-algo/math/fft.hpp
@@ -278,7 +278,7 @@ namespace cp_algo::math::fft {
278
using base = std::decay_t<decltype(a[0])>;
279
dft<base>::init();
280
if(k <= (1 << 16)) {
281
- auto ap = std::ranges::to<std::vector<base, big_alloc<base>>>(a);
+ std::vector<base, big_alloc<base>> ap(begin(a), end(a));
282
mul_truncate(ap, b, 2 * k);
283
mod_split(ap, k, bpow(dft<base>::factor, k));
284
std::ranges::copy(ap | std::views::take(k), begin(a));
0 commit comments