fftw_complex *out, const int *onembed,
int ostride, int odist,
int sign, unsigned flags */
- fft->plan[0][0][0] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, up1, &nx, 1, nx, up2, &nx, 1,
- nx, FFTW_BACKWARD, fftw_flags);
- fft->plan[0][0][1] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, up1, &nx, 1, nx, up2, &nx, 1,
- nx, FFTW_FORWARD, fftw_flags);
- fft->plan[0][1][0] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, up1, &nx, 1, nx, up1, &nx, 1,
- nx, FFTW_BACKWARD, fftw_flags);
- fft->plan[0][1][1] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, up1, &nx, 1, nx, up1, &nx, 1,
- nx, FFTW_FORWARD, fftw_flags);
- fft->plan[1][0][0] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, p1, &nx, 1, nx, p2, &nx, 1, nx,
- FFTW_BACKWARD, fftw_flags);
- fft->plan[1][0][1] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, p1, &nx, 1, nx, p2, &nx, 1, nx,
- FFTW_FORWARD, fftw_flags);
- fft->plan[1][1][0] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, p1, &nx, 1, nx, p1, &nx, 1, nx,
- FFTW_BACKWARD, fftw_flags);
- fft->plan[1][1][1] = FFTWPREFIX(plan_many_dft)(1, &nx, howmany, p1, &nx, 1, nx, p1, &nx, 1, nx,
- FFTW_FORWARD, fftw_flags);
+ fft->plan[0][0][0] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, up1, &nx, 1, nx, up2, &nx, 1, nx, FFTW_BACKWARD, fftw_flags);
+ fft->plan[0][0][1] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, up1, &nx, 1, nx, up2, &nx, 1, nx, FFTW_FORWARD, fftw_flags);
+ fft->plan[0][1][0] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, up1, &nx, 1, nx, up1, &nx, 1, nx, FFTW_BACKWARD, fftw_flags);
+ fft->plan[0][1][1] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, up1, &nx, 1, nx, up1, &nx, 1, nx, FFTW_FORWARD, fftw_flags);
+ fft->plan[1][0][0] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, p1, &nx, 1, nx, p2, &nx, 1, nx, FFTW_BACKWARD, fftw_flags);
+ fft->plan[1][0][1] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, p1, &nx, 1, nx, p2, &nx, 1, nx, FFTW_FORWARD, fftw_flags);
+ fft->plan[1][1][0] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, p1, &nx, 1, nx, p1, &nx, 1, nx, FFTW_BACKWARD, fftw_flags);
+ fft->plan[1][1][1] = FFTWPREFIX(plan_many_dft)(
+ 1, &nx, howmany, p1, &nx, 1, nx, p1, &nx, 1, nx, FFTW_FORWARD, fftw_flags);
for (i = 0; i < 2; i++)
{
fftw_complex *out, const int *onembed,
int ostride, int odist,
unsigned flag */
- fft->plan[0][0][1] = FFTWPREFIX(plan_many_dft_r2c)(
- 1, &nx, howmany, up1, nullptr, 1, (nx / 2 + 1) * 2,
- reinterpret_cast<FFTWPREFIX(complex)*>(up2), nullptr, 1, (nx / 2 + 1), fftw_flags);
- fft->plan[0][1][1] = FFTWPREFIX(plan_many_dft_r2c)(
- 1, &nx, howmany, up1, nullptr, 1, (nx / 2 + 1) * 2,
- reinterpret_cast<FFTWPREFIX(complex)*>(up1), nullptr, 1, (nx / 2 + 1), fftw_flags);
- fft->plan[1][0][1] = FFTWPREFIX(plan_many_dft_r2c)(
- 1, &nx, howmany, p1, nullptr, 1, (nx / 2 + 1) * 2,
- reinterpret_cast<FFTWPREFIX(complex)*>(p2), nullptr, 1, (nx / 2 + 1), fftw_flags);
- fft->plan[1][1][1] = FFTWPREFIX(plan_many_dft_r2c)(
- 1, &nx, howmany, p1, nullptr, 1, (nx / 2 + 1) * 2,
- reinterpret_cast<FFTWPREFIX(complex)*>(p1), nullptr, 1, (nx / 2 + 1), fftw_flags);
-
- fft->plan[0][0][0] = FFTWPREFIX(plan_many_dft_c2r)(
- 1, &nx, howmany, reinterpret_cast<FFTWPREFIX(complex)*>(up1), nullptr, 1, (nx / 2 + 1),
- up2, nullptr, 1, (nx / 2 + 1) * 2, fftw_flags);
- fft->plan[0][1][0] = FFTWPREFIX(plan_many_dft_c2r)(
- 1, &nx, howmany, reinterpret_cast<FFTWPREFIX(complex)*>(up1), nullptr, 1, (nx / 2 + 1),
- up1, nullptr, 1, (nx / 2 + 1) * 2, fftw_flags);
- fft->plan[1][0][0] = FFTWPREFIX(plan_many_dft_c2r)(
- 1, &nx, howmany, reinterpret_cast<FFTWPREFIX(complex)*>(p1), nullptr, 1, (nx / 2 + 1),
- p2, nullptr, 1, (nx / 2 + 1) * 2, fftw_flags);
- fft->plan[1][1][0] = FFTWPREFIX(plan_many_dft_c2r)(
- 1, &nx, howmany, reinterpret_cast<FFTWPREFIX(complex)*>(p1), nullptr, 1, (nx / 2 + 1),
- p1, nullptr, 1, (nx / 2 + 1) * 2, fftw_flags);
+ fft->plan[0][0][1] = FFTWPREFIX(plan_many_dft_r2c)(1,
+ &nx,
+ howmany,
+ up1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ reinterpret_cast<FFTWPREFIX(complex)*>(up2),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ fftw_flags);
+ fft->plan[0][1][1] = FFTWPREFIX(plan_many_dft_r2c)(1,
+ &nx,
+ howmany,
+ up1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ reinterpret_cast<FFTWPREFIX(complex)*>(up1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ fftw_flags);
+ fft->plan[1][0][1] = FFTWPREFIX(plan_many_dft_r2c)(1,
+ &nx,
+ howmany,
+ p1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ reinterpret_cast<FFTWPREFIX(complex)*>(p2),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ fftw_flags);
+ fft->plan[1][1][1] = FFTWPREFIX(plan_many_dft_r2c)(1,
+ &nx,
+ howmany,
+ p1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ reinterpret_cast<FFTWPREFIX(complex)*>(p1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ fftw_flags);
+
+ fft->plan[0][0][0] = FFTWPREFIX(plan_many_dft_c2r)(1,
+ &nx,
+ howmany,
+ reinterpret_cast<FFTWPREFIX(complex)*>(up1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ up2,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ fftw_flags);
+ fft->plan[0][1][0] = FFTWPREFIX(plan_many_dft_c2r)(1,
+ &nx,
+ howmany,
+ reinterpret_cast<FFTWPREFIX(complex)*>(up1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ up1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ fftw_flags);
+ fft->plan[1][0][0] = FFTWPREFIX(plan_many_dft_c2r)(1,
+ &nx,
+ howmany,
+ reinterpret_cast<FFTWPREFIX(complex)*>(p1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ p2,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ fftw_flags);
+ fft->plan[1][1][0] = FFTWPREFIX(plan_many_dft_c2r)(1,
+ &nx,
+ howmany,
+ reinterpret_cast<FFTWPREFIX(complex)*>(p1),
+ nullptr,
+ 1,
+ (nx / 2 + 1),
+ p1,
+ nullptr,
+ 1,
+ (nx / 2 + 1) * 2,
+ fftw_flags);
for (i = 0; i < 2; i++)
{
}
FFTWPREFIX(execute_dft)
- (fft->plan[aligned][inplace][isforward], static_cast<FFTWPREFIX(complex)*>(in_data),
+ (fft->plan[aligned][inplace][isforward],
+ static_cast<FFTWPREFIX(complex)*>(in_data),
static_cast<FFTWPREFIX(complex)*>(out_data));
return 0;
if (isforward)
{
FFTWPREFIX(execute_dft_r2c)
- (fft->plan[aligned][inplace][isforward], static_cast<real*>(in_data),
+ (fft->plan[aligned][inplace][isforward],
+ static_cast<real*>(in_data),
static_cast<FFTWPREFIX(complex)*>(out_data));
}
else
{
FFTWPREFIX(execute_dft_c2r)
- (fft->plan[aligned][inplace][isforward], static_cast<FFTWPREFIX(complex)*>(in_data),
+ (fft->plan[aligned][inplace][isforward],
+ static_cast<FFTWPREFIX(complex)*>(in_data),
static_cast<real*>(out_data));
}
if (isforward)
{
FFTWPREFIX(execute_dft_r2c)
- (fft->plan[aligned][inplace][isforward], static_cast<real*>(in_data),
+ (fft->plan[aligned][inplace][isforward],
+ static_cast<real*>(in_data),
static_cast<FFTWPREFIX(complex)*>(out_data));
}
else
{
FFTWPREFIX(execute_dft_c2r)
- (fft->plan[aligned][inplace][isforward], static_cast<FFTWPREFIX(complex)*>(in_data),
+ (fft->plan[aligned][inplace][isforward],
+ static_cast<FFTWPREFIX(complex)*>(in_data),
static_cast<real*>(out_data));
}