我是VC ++的新手。我正在尝试编译库FFT3W。
当我尝试编译
时// Define temporary buffers
data_t fft_buffer;
data_t zeros;
// Allocate memory and initialize to 0
fft_buffer.resize (2 * partition_size, 0.0f);
zeros.resize (2 * partition_size, 0.0f);
// Create plans for halfcomplex fft data format
fftwf_plan fft_plan =
fftw_plan_r2r_1d (2 * partition_size, & fft_buffer [0],
& fft_buffer [0], FFTW_R2HC, FFTW_ESTIMATE);
我收到以下错误
Error C2664: 'fftw_plan_r2r_1d': can not convert parameter 2 from 'float *' to 'double *'
函数fftw_plan_r2r_1d定义为:
fftw_plan_r2r_1d(int n, double *in, double *out, fftw_r2r_kind kind, unsigned flags);
有什么想法吗?
谢谢。