Merged in net147/eigen (pull request PR-411)

Use std::complex constructor instead of assignment from scalar
This commit is contained in:
Gael Guennebaud 2018-06-28 21:01:04 +00:00
commit 54f6eeda90

View File

@ -316,8 +316,8 @@ struct kissfft_impl
// use optimized mode for even real
fwd( dst, reinterpret_cast<const Complex*> (src), ncfft);
Complex dc = dst[0].real() + dst[0].imag();
Complex nyquist = dst[0].real() - dst[0].imag();
Complex dc(dst[0].real() + dst[0].imag());
Complex nyquist(dst[0].real() - dst[0].imag());
int k;
for ( k=1;k <= ncfft2 ; ++k ) {
Complex fpk = dst[k];