Using single precision floating point with FFTW in Visual Studio

I am trying to use the FFTW library in a Visual Studio project and I am having problems getting the floating point precision to work. I created library files and linked them like in this post and I included libfftw3f-3.lib library like they said and everything else is fine except for the function fftw_plan_dft_r2c_2d()

. It will not accept my float * array for parameter 3 because it is incompatible with its double * argument. I realize this is just precision, but I would rather use floating point because fftw does indeed support it, and b / c is from the way I'm memcpy()

'data from a float array. I'm just having problems with the fftw library using floating point. I haven't seen anything specific in this Windows section as I did in the Unix section other than the library referencelibfftw3f-3.lib

... Can anyone give me some hints on how to do this?

+3


source to share


1 answer


For uniprocessing routines in FFTW, you need to use prefixed routines fftwf_

, not fftw_

, so your call fftw_plan_dft_r2c_2d()

should be fftwf_plan_dft_r2c_2d()

.



+4


source







All Articles