问题
I'm seeking a minimal Java wrapper for a recent version of FFTW. The wrappers listed on the FFTW website are either out of date (jfftw-1.2.zip) or contain too much extra stuff (Shared Scientific Toolbox). A Google search suggests JFFTW3, which looks promising, but the download link is broken (does anybody have a mirror?)
For those who want a pure Java FFT library, JTransforms looks very good. I'd prefer to use FFTW because it's about twice as fast, and it handles arbitrary dimensions d > 3.
回答1:
I ended up using JNAerator to automatically generate JNA bindings from the header file fftw3.h
. The result is available as a gist on Github. The gist (at the bottom) also includes a convenient Scala interface for real transforms of arbitrary dimension.
来源:https://stackoverflow.com/questions/5775108/recent-fftw-wrapper-in-java