Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recent FFTW wrapper in Java

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.

like image 836
Kipton Barros Avatar asked Apr 25 '11 04:04

Kipton Barros


1 Answers

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.

like image 155
Kipton Barros Avatar answered Sep 23 '22 19:09

Kipton Barros