mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
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.
This commit is contained in:
parent
f9d337780d
commit
b7689bded9
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user