moved real-half-spectrum reflection into Eigen::FFT

This commit is contained in:
Mark Borgerding
2009-10-30 20:26:30 -04:00
parent a26b729cc9
commit d659fd9b14
3 changed files with 22 additions and 15 deletions

View File

@@ -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

View File

@@ -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;
}