removed unnecessary loop

the caller in fshifter is already doing the same job by putting 0 for the imaginary part
This commit is contained in:
Lopuska
2019-09-15 02:58:53 +02:00
committed by GitHub
parent 4e8caea97e
commit 925894fb8b
-2
View File
@@ -55,8 +55,6 @@ void complex_fft(const al::span<std::complex<double>> buffer, const double sign)
void complex_hilbert(const al::span<std::complex<double>> buffer)
{
std::for_each(buffer.begin(), buffer.end(), [](std::complex<double> &c) { c.imag(0.0); });
complex_fft(buffer, 1.0);
const double inverse_size = 1.0/static_cast<double>(buffer.size());