mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
moved real-half-spectrum reflection into Eigen::FFT
This commit is contained in:
@@ -177,9 +177,6 @@
|
||||
void fwd( Complex * dst,const Scalar * src,int nfft)
|
||||
{
|
||||
get_plan(nfft,false,dst,src).fwd(ei_fftw_cast(dst), ei_fftw_cast(src) ,nfft);
|
||||
int nhbins=(nfft>>1)+1;
|
||||
for (int k=nhbins;k < nfft; ++k )
|
||||
dst[k] = conj(dst[nfft-k]);
|
||||
}
|
||||
|
||||
// inverse complex-to-complex
|
||||
|
||||
@@ -322,8 +322,6 @@
|
||||
|
||||
// place conjugate-symmetric half at the end for completeness
|
||||
// TODO: make this configurable ( opt-out )
|
||||
for ( k=1;k < ncfft ; ++k )
|
||||
dst[nfft-k] = conj(dst[k]);
|
||||
dst[0] = dc;
|
||||
dst[ncfft] = nyquist;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user