Lines Matching refs:cplx
76 int test(int N, int cplx, int useOrdered) { in test() argument
77 int Nfloat = (cplx ? N*2 : N); in test()
98 PFFFT_Setup *s = pffft_new_setup(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); in test()
101 PFFFTD_Setup *s = pffftd_new_setup(N, cplx ? PFFFT_COMPLEX : PFFFT_REAL); in test()
109 for ( k = m = 0; k < (cplx? N : (1 + N/2) ); k += N/16, ++m ) in test()
129 if (cplx) { in test()
167 for ( j = 0; j < ( cplx ? N : (1 + N/2) ); ++j ) in test()
169 if (!cplx && !j) /* special treatment for DC for real input */ in test()
171 else if (!cplx && j == N/2) /* treat 0.5 * samplerate */ in test()
176 …printf("%s fft %d: pwr[j = %d] = %g == %f dB\n", (cplx ? "cplx":"real"), N, j, pwr, PWR2LOG(pwr) … in test()
186 printf("%s fft %d amp %f iter %d:\n", (cplx ? "cplx":"real"), N, amp, iter); in test()
203 (cplx ? "cplx":"real"), N, k, amp, phi * 180.0 / M_PI, phi0 * 180.0 / M_PI ); in test()
207 expextedMag = cplx ? amp : ( (k == 0 || k == N/2) ? amp : (amp/2) ); in test()
212 …printf("%s fft %d bin %d amp %f : mag = %g expected = %g\n", (cplx ? "cplx":"real"), N, k, amp,… in test()
230 for ( j = 0; j < (cplx ? (2*N) : N); ++j ) in test()
242 …verse FFT doesn't match original signal! errSum = %g ; mean err = %g\n", (cplx ? "cplx":"real"), N… in test()