FFT how to choose?

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 :frowning:

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?.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs