summaryrefslogtreecommitdiff
path: root/content/math/transforms/fft.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2026-11-25 20:52:01 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2026-11-25 20:52:01 +0100
commit6a8ced3e189cae272389718dfba7264dc752f663 (patch)
tree099c6de4cce2fcef8bc038a1e278121ccc591099 /content/math/transforms/fft.cpp
parent5b85f8063460cfeec6b7a798b5dfeb06755354fd (diff)
parentd39aa7ca41379e81b0b873d26186f4ab128ffe04 (diff)
merge mzuenni changes
Diffstat (limited to 'content/math/transforms/fft.cpp')
-rw-r--r--content/math/transforms/fft.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/math/transforms/fft.cpp b/content/math/transforms/fft.cpp
index 1f80e36..fce0e45 100644
--- a/content/math/transforms/fft.cpp
+++ b/content/math/transforms/fft.cpp
@@ -2,7 +2,7 @@ using cplx = complex<double>;
void fft(vector<cplx>& a, bool inv = false) {
int n = ssize(a);
- for (int i = 0, j = 1; j < n - 1; ++j) {
+ for (int i = 0, j = 1; j < n - 1; j++) {
for (int k = n >> 1; k > (i ^= k); k >>= 1);
if (j < i) swap(a[i], a[j]);
}