From 1d093b27799b8bd4f8748f5df22459832cd5aba2 Mon Sep 17 00:00:00 2001 From: Elliott Mahler Date: Mon, 7 Sep 2026 22:10:38 -0700 Subject: [PATCH 1/4] Clarify output order --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2bcb30dd..dce52fba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,7 +86,11 @@ //! //! ### Output Order //! -//! Elements in the output are ordered by ascending frequency, with the first element corresponding to frequency 0. +//! Elements in the output have the following order: +//! +//! - Frequency zero +//! - Positive frequencies, from smallest magnitude to largest +//! - Negative frequencies, from smallest magnitude to largest //! //! ### AVX Performance Tips //! From 0aaf087a1dde30c3ec31b2ecc4edb8c094dd1692 Mon Sep 17 00:00:00 2001 From: Elliott Mahler Date: Mon, 7 Sep 2026 22:13:51 -0700 Subject: [PATCH 2/4] Ordered list instead of bullets --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dce52fba..0e70675b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,9 +88,9 @@ //! //! Elements in the output have the following order: //! -//! - Frequency zero -//! - Positive frequencies, from smallest magnitude to largest -//! - Negative frequencies, from smallest magnitude to largest +//! 1. Frequency zero +//! 1. Positive frequencies, from smallest magnitude to largest +//! 1. Negative frequencies, from smallest magnitude to largest //! //! ### AVX Performance Tips //! From 2cc0a292ab541be79bc63aa79006bfc255b80620 Mon Sep 17 00:00:00 2001 From: Elliott Mahler Date: Mon, 7 Sep 2026 22:14:15 -0700 Subject: [PATCH 3/4] cargo fmt --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0e70675b..ed51fa75 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,7 +87,7 @@ //! ### Output Order //! //! Elements in the output have the following order: -//! +//! //! 1. Frequency zero //! 1. Positive frequencies, from smallest magnitude to largest //! 1. Negative frequencies, from smallest magnitude to largest From f004a48c579e4b5bec6bc53c2509768d8642dd0d Mon Sep 17 00:00:00 2001 From: Elliott Mahler Date: Tue, 15 Sep 2026 20:23:50 -0700 Subject: [PATCH 4/4] Update lib.rs --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ed51fa75..dd3dafd1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,8 +89,11 @@ //! Elements in the output have the following order: //! //! 1. Frequency zero -//! 1. Positive frequencies, from smallest magnitude to largest -//! 1. Negative frequencies, from smallest magnitude to largest +//! 2. Positive frequencies, from smallest magnitude to largest +//! 3. Negative frequencies, from largest magnitude to smallest +//! +//! For example, with 6 elements and a sample rate `fs`, the output frequencies are +//! `[0, fs/6, 2*fs/6, 3*fs/6, -2*fs/6, -fs/6]`, where `3*fs/6` is the Nyquist frequency. //! //! ### AVX Performance Tips //!