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 0a2678c commit 30b97a5Copy full SHA for 30b97a5
weilycoder/poly/fft_convolve.hpp
@@ -29,7 +29,8 @@ std::vector<std::complex<float_t>> fft_convolve(std::vector<std::complex<float_t
29
fft(a), fft(b);
30
for (size_t i = 0; i < n; ++i)
31
a[i] *= b[i];
32
- return fft<-1>(a), a;
+ fft<-1>(a), a.resize(a.size() + b.size() - 1);
33
+ return a;
34
}
35
36
/**
0 commit comments