/external/eigen/unsupported/Eigen/src/FFT/ |
ei_fftw_impl.h | 60 void fwd(complex_type * dst,complex_type * src,int nfft) { 61 if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 65 void inv(complex_type * dst,complex_type * src,int nfft) { 66 if (m_plan==NULL) m_plan = fftwf_plan_dft_1d(nfft,src,dst, FFTW_BACKWARD , FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 70 void fwd(complex_type * dst,scalar_type * src,int nfft) { 71 if (m_plan==NULL) m_plan = fftwf_plan_dft_r2c_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 75 void inv(scalar_type * dst,complex_type * src,int nfft) { 77 m_plan = fftwf_plan_dft_c2r_1d(nfft,src,dst,FFTW_ESTIMATE|FFTW_PRESERVE_INPUT); 103 void fwd(complex_type * dst,complex_type * src,int nfft) { 104 if (m_plan==NULL) m_plan = fftw_plan_dft_1d(nfft,src,dst, FFTW_FORWARD, FFTW_ESTIMATE|FFTW_PRESERVE_INPUT) 192 get_plan(nfft,false,dst,src).fwd(fftw_cast(dst), fftw_cast(src),nfft ); local 199 get_plan(nfft,false,dst,src).fwd(fftw_cast(dst), fftw_cast(src) ,nfft); local 213 get_plan(nfft,true,dst,src).inv(fftw_cast(dst), fftw_cast(src),nfft ); local 220 get_plan(nfft,true,dst,src).inv(fftw_cast(dst), fftw_cast(src),nfft ); local [all...] |
ei_kissfft_impl.h | 29 void make_twiddles(int nfft,bool inverse) 32 m_twiddles.resize(nfft); 33 Scalar phinc = (inverse?2:-2)* acos( (Scalar) -1) / nfft; 34 for (int i=0;i<nfft;++i) 38 void factorize(int nfft) 41 int n= nfft; 276 void fwd( Complex * dst,const Complex *src,int nfft) 278 get_plan(nfft,false).work(0, dst, src, 1,1); 304 void fwd( Complex * dst,const Scalar * src,int nfft) 306 if ( nfft&3 ) [all...] |
/external/eigen/bench/ |
benchFFT.cpp | 34 #ifndef NFFT 35 #define NFFT 1024 44 void bench(int nfft,bool fwd,bool unscaled=false, bool halfspec=false) 48 int nits = NDATA/nfft; 49 vector<T> inbuf(nfft); 50 vector<Complex > outbuf(nfft); 80 double mflops = 5.*nfft*log2((double)nfft) / (1e6 * timer.value() / (double)nits ); 94 cout << " NFFT=" << nfft << " " << (double(1e-6*nfft*nits)/timer.value()) << " MS/s " << mflops << "MFLOPS\n" [all...] |
/external/eigen/unsupported/doc/examples/ |
FFT.cpp | 75 void fwd_inv(size_t nfft) 78 vector<T_time> timebuf(nfft); 93 void two_demos(int nfft) 96 fwd_inv<T_scalar,std::complex<T_scalar> >(nfft); 98 fwd_inv<std::complex<T_scalar>,std::complex<T_scalar> >(nfft); 101 void demo_all_types(int nfft) 103 cout << "nfft=" << nfft << endl; 105 two_demos<float>(nfft); 107 two_demos<double>(nfft); [all...] |
/external/eigen/unsupported/test/ |
FFTW.cpp | 81 void test_scalar_generic(int nfft) 89 ScalarVector tbuf(nfft); 91 for (int k=0;k<nfft;++k) 98 VERIFY((size_t)freqBuf.size() == (size_t)( (nfft>>1)+1) ); 103 VERIFY( (size_t)freqBuf.size() == (size_t)nfft); 106 if (nfft&1) 120 for (int k=0;k<nfft;++k) 121 tbuf3[k] *= T(1./nfft); 136 void test_scalar(int nfft) 138 test_scalar_generic<StdVectorContainer,T>(nfft); [all...] |
/external/speex/libspeex/ |
kiss_fft.h | 74 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem); 81 * fin should be f[0] , f[1] , ... ,f[nfft-1] 82 * fout will be F[0] , F[1] , ... ,F[nfft-1]
|
kiss_fftr.c | 32 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem) 38 if (nfft & 1) { 42 nfft >>= 1; 44 kiss_fft_alloc (nfft, inverse_fft, NULL, &subsize); 45 memneeded = sizeof(struct kiss_fftr_state) + subsize + sizeof(kiss_fft_cpx) * ( nfft * 2); 59 st->super_twiddles = st->tmpbuf + nfft; 60 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize); 63 for (i=0;i<nfft;++i) { 64 spx_word32_t phase = i+(nfft>>1); 67 kf_cexp2(st->super_twiddles+i, DIV32(SHL32(phase,16),nfft)); [all...] |
kiss_fftr.h | 21 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem); 23 nfft must be even 31 input timedata has nfft scalar points 32 output freqdata has nfft/2+1 complex points 42 input freqdata has nfft/2+1 complex points 43 output timedata has nfft scalar points
|
kiss_fft.c | 290 int Norig = st->nfft; 464 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem ) 468 + sizeof(kiss_fft_cpx)*(nfft-1); /* twiddle factors*/ 479 st->nfft=nfft; 482 for (i=0;i<nfft;++i) { 486 kf_cexp2(st->twiddles+i, DIV32(SHL32(phase,17),nfft)); 489 for (i=0;i<nfft;++i) { 491 double phase = ( -2*pi /nfft ) * i; 497 kf_factor(nfft,st->factors) [all...] |
_kiss_fft_guts.h | 32 int nfft; member in struct:kiss_fft_state
|