RepositoryPython
mpi4py

mpi4py/mpi4py-fft

mpi4py-fft is a Python package for computing Fast Fourier Transforms (FFTs).

59stars
14forks
13issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: dct

#1 Repository of the month

1
TINIX TRENDING·Topic: dst

#1 Repository of the month

1
TINIX TRENDING·Topic: mpi4py

#1 Repository of the month

mpi4py-fft

.. image:: https://dev.azure.com/mpi4py/mpi4py-fft/_apis/build/status/mpi4py.mpi4py-fft?branchName=master :target: https://dev.azure.com/mpi4py/mpi4py-fft

.. image:: https://codecov.io/bb/mpi4py/mpi4py-fft/branch/master/graph/badge.svg :target: https://codecov.io/bb/mpi4py/mpi4py-fft

.. image:: https://readthedocs.org/projects/mpi4py-fft/badge/?version=latest :target: https://mpi4py-fft.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://anaconda.org/conda-forge/mpi4py-fft/badges/downloads.svg :target: https://anaconda.org/conda-forge/mpi4py-fft :alt: Total downloads from conda-forge

mpi4py-fft is a Python package for computing Fast Fourier Transforms (FFTs). Large arrays are distributed and communications are handled under the hood by MPI for Python (mpi4py). To distribute large arrays we are using a new and completely generic algorithm <https://arxiv.org/abs/1804.09536>_ that allows for any index set of a multidimensional array to be distributed. We can distribute just one index (a slab decomposition), two index sets (pencil decomposition) or even more for higher-dimensional arrays.

mpi4py-fft comes with its own Python interface to the serial FFTW <http://www.fftw.org>_ library. This interface can be used much like pyfftw <https://hgomersall.github.io/pyFFTW/>_, and even for real-to-real transforms, like discrete cosine or sine transforms.

Further documentation is found at readthedocs <https://mpi4py-fft.readthedocs.io/en/latest/>_.

Installation

The mpi4py-fft package can be installed using::

pip install mpi4py-fft

or, to get the latest version from GitHub::

pip install git+https://github.com/mpi4py/mpi4py-fft@master

Install with conda from the coda-forge channel::

conda install -c conda-forge mpi4py-fft

Note that mpi4py-fft depends on Python packages

* mpi4py
* numpy
* cython

and the serial C-library

* `FFTW <http://www.fftw.org>`_

Note in particular that mpi4py requires that you have a working MPI installation, with the compiler wrapper mpicc, on your search path. The FFTW header and libraries must also be available on the search path, and we will build wrappers for any precision found of the FFTW libraries.

All of the above dependencies are available and will be downloaded through the conda-forge channel if conda is used for installation. However, pip will not help you with MPI or FFTW.

For IO you need to install either h5py <https://www.h5py.org>_ or netCDF4 <http://unidata.github.io/netcdf4-python/>_ with support for MPI. Both are available from the coda-forge channel through::

conda install -c conda-forge h5py=*=mpi* netcdf4=*=mpi*

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
mpi4py/mpi4py

Python bindings for MPI

934
Dec 1, 2026
RepositoryPython
mpi4jax/mpi4jax

Zero-copy MPI communication of JAX arrays, for turbo-charged HPC applications in Python :zap:

552
Nov 24, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

380.2k
Sep 15, 2026
RepositoryPython
vinta/awesome-python

The definitive list that answers "I want to do X in Python, which tool should I use?"

338.8k
Nov 28, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryPython
TheAlgorithms/Python

All Algorithms implemented in Python

226.6k
Nov 13, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.6k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.8k
Nov 27, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026