Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A pythonic python wrapper around FFTW
Python C Makefile Batchfile

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


pyFFTW is a pythonic wrapper around FFTW ( ), the
speedy FFT library.  The ultimate aim is to present a unified interface for all
the possible transforms that FFTW can perform.

Both the complex DFT and the real DFT are supported, as well as on arbitrary
axes of abitrary shaped and strided arrays, which makes it almost
feature equivalent to standard and real FFT functions of ``numpy.fft`` 
(indeed, it supports the ``clongdouble`` dtype which ``numpy.fft`` does not).

Operating FFTW in multithreaded mode is supported.

A comprehensive unittest suite can be found with the source on the github 

To build for windows from source, download the fftw dlls for your system
and the header file from here (they're in a zip file): and place them in the pyfftw
directory. The files are libfftw3-3.dll, libfftw3l-3.dll, libfftw3f-3.dll 
and libfftw3.h.

Under linux, to build from source, the FFTW library must be installed already.
This should probably work for OSX, though I've not tried it.

Numpy is a dependency for both.

The documentation can be found at , the source is on github: and the python package index page is here: .

If you want to build the code that is here, use the cython_setup script like:

python ./ build_ext --inplace

That will build the cython code into a .c file (and should compile that too). is designed for after the .c file has been created (as in the source distribution).
Something went wrong with that request. Please try again.