mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Merged in net147/eigen (pull request PR-411)
Use std::complex constructor instead of assignment from scalar
This commit is contained in:
commit
54f6eeda90
@ -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