diff options
author | Jonathan Liu <net147@gmail.com> | 2018-06-28 00:32:37 +1000 |
---|---|---|
committer | Jonathan Liu <net147@gmail.com> | 2018-06-28 00:32:37 +1000 |
commit | b7689bded9e87c95affb5963ad565a68974aa7f7 (patch) | |
tree | 381a87f905628154fc1f177d13c78c9b30df5f9a /unsupported/Eigen/src/FFT | |
parent | f9d337780d49825765cbb8ea51843a905c0e5253 (diff) |
Use std::complex constructor instead of assignment from scalar
Fixes GCC conversion to non-scalar type requested compile error when
using boost::multiprecision::cpp_dec_float_50 as scalar type.
Diffstat (limited to 'unsupported/Eigen/src/FFT')
-rw-r--r-- | unsupported/Eigen/src/FFT/ei_kissfft_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/FFT/ei_kissfft_impl.h b/unsupported/Eigen/src/FFT/ei_kissfft_impl.h index be51b4e6f..079e88602 100644 --- a/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +++ b/unsupported/Eigen/src/FFT/ei_kissfft_impl.h @@ -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]; |