Tell me what to choose a library for the fast Fourier transform? Found
FFTW but it has not been updated for 4 years. Subject to what is an
alternative?. I am interested in the transformation of 1D, forward and
reverse. On the official FFTW website examples by c++ programming
language
Why do you need a more recent version? I had a quick look, and the only
ārecentā changes I saw within FFTW were updates to the license. Perhaps
it works fine, so doesnāt need updates. Have you tried it?
There are a few examples in Ruby of using FFTW3 here:
http://ruby.gfd-dennou.org/products/ruby-fftw3/doc/ruby-fftw3.html
Be sure to try, the only thing I do not understand the syntax for Ruby.
Example of code that I need on the official site FFTW.
#include <fftw3.h>
ā¦
{
fftw_complex in, out;
fftw_plan p;
ā¦
in = (fftw_complex) fftw_malloc(sizeof(fftw_complex) * N);
out = (fftw_complex) fftw_malloc(sizeof(fftw_complex) * N);
p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE);
ā¦
fftw_executeĀ§; /* repeat as needed */
ā¦
fftw_destroy_planĀ§;
fftw_free(in); fftw_free(out);
}
How would it look to Ruby?.