ndrustfft

Library Listed

N-dimensional FFT, real-to-complex FFT and real-to-real DCT

Checked · Sources

Downloads
10,619
Dependents
12
Stars
32
Forks
6
Contributors
5
Commits
95
Latest release
0.6.2 ·

About

From the project README ·

ndrustfft: n-dimensional complex-to-complex FFT, real-to-complex FFT and real-to-real DCT

This library is a wrapper for RustFFT, RustDCT and RealFft that enables performing FFTs and DCTs of complex- and real-valued data on n-dimensional arrays (ndarray).

ndrustfft provides Handler structs for FFT's and DCTs, which must be provided alongside with the arrays to the respective functions (see below) . The Handlers implement a process function, which is a wrapper around Rustfft's process. Transforms along the outermost axis are in general the fastest, while transforms along other axis' will temporarily create copies of the input array.

Parallel

The library ships all functions with a parallel version which leverages the parallel iterators of the ndarray crate.

Available transforms
Complex-to-complex
  • fft : [ndfft], [ndfft_inplace], [ndfft_par]
  • ifft: [ndifft],[ndifft_inplace],[ndifft_par]
Real-to-complex
  • fft_r2c : [ndfft_r2c], [ndfft_r2c_par],
Complex-to-real
  • ifft_r2c: [ndifft_r2c],[ndifft_r2c_par]
Real-to-real
  • dct1: [nddct1],[nddct1_inplace],[nddct1_par]
  • dct2: [nddct2],[nddct2_inplace],[nddct2_par]
  • dct3: [nddct3],[nddct3_inplace],[nddct3_par]
  • dct4: [nddct4],[nddct4_inplace],[nddct4_par]
Read the full README
Example

2-Dimensional real-to-complex fft along first axis

use ndarray::{Array2, Dim, Ix};
use ndrustfft::{ndfft_r2c, Complex, R2cFftHandler};

let (nx, ny) = (6, 4);
let mut data = Array2::<f64>::zeros((nx, ny));
let mut vhat = Array2::<Complex<f64>>::zeros((nx / 2 + 1, ny));
for (i, v) in data.iter_mut().enumerate() {
    *v = i as f64;
}
let mut fft_handler = R2cFftHandler::<f64>::new(nx);
ndfft_r2c(
    &data.view(),
    &mut vhat.view_mut(),
    &mut fft_handler,
    0,
);

Normalization

RustFFT, RustDCT and RealFft do not normalise, while this library applies normalization as scipy by default. This means, inverse ffts are divided by a factor of data.len(), and dcts are multiplied by two. It is possible to switch from the default normalization to no normalization, or to apply a custom normalization by using the normalization builder.

See: examples/fft_norm

Features

  • parallel: Enables parallel transform using ndarrays + rayon (enabled by default)
  • avx: Enables rustfft's avx feature (enabled by default)
  • sse: Enables rustfft's sse feature (enabled by default)
  • neon: Enables rustfft's neon feature (enabled by default)

Documentation

docs.rs

Versions

Changelog

License: MIT

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

ndrustfft beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
ndrustfft This page Listed

N-dimensional FFT, real-to-complex FFT and real-to-real DCT

10,619 downloads over 30 days 12 32 0.6.2 GPU support unknown No native code found MIT
ndarray Featured

An n-dimensional array for general elements and for numerics. Lightweight array views and slicing; views support chunking and splitting.

13,748,379 downloads over 30 days 2,888 4,344 0.17.2 GPU support unknown Binds native code: cblas-sys (feature blas) Apache-2.0 OR MIT
nalgebra Featured

General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices.

6,251,820 downloads over 30 days 2,119 4,810 0.35.0 GPU support unknown Binds native code: blas-sys, lapack-sys, defmt (feature defmt) Apache-2.0
rustfft Featured

High-performance FFT library written in pure Rust.

4,266,035 downloads over 30 days 571 963 6.4.1 GPU support unknown No native code found Apache-2.0 OR MIT
peroxide Listed

Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with familiar syntax

Python bindings

56,548 downloads over 30 days 9 732 0.43.1 GPU support unknown Binds native code: openblas-src (feature O3-openblas-system), blas-sys (feature O3), hdf5-metno-sys (feature nc), lapack-sys (feature O3), libz-sys (feature nc) and 1 more Apache-2.0 OR MIT
numr Listed

The base for numerical code in Rust, in the role NumPy has in Python: n-dimensional tensors, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU. The backends use native kernels, with no cuBLAS, MKL or other vendor math library.

1,673 downloads over 30 days 7 59 0.15.2 CUDA, WebGPU Binds native code: ring (feature distributed) Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 6 active dependents and 5 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 32 stars, 6 forks and 5 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 8 Feb 2026, 274 days ago. The rules expect an update within 365 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.6.2 base 300, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2026-02-08, 274 days ago, E = 365: active
  • featured: not featured: active_users 6 < 11 and new_adopters 5 < 9 and repository route stars 32 (needs 4539), forks 6 (needs 434), contributors 5 (needs 79)
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption6 active dependents, 5 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents6crates.io database dumpYes
New dependents (365 days)5crates.io database dumpYes
Peak active dependents5.5crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 9 months ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-02-08GitHub repositoryYes
Latest release2026-01-06crates.io database dumpYes
First release2021-08-07crates.io database dumpYes
Latest version0.6.2crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days4GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution12 releases, 10,619 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases12crates.io database dumpYes
Downloads over 30 days10619crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository32 stars, 6 forks, 5 contributors, 95 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars32GitHub repositoryYes — one part of the repository route
GitHub forks6GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account5GitHub contributorsYes — one part of the repository route
Commits on the default branch95GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly12crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.