summaryrefslogtreecommitdiff
path: root/content/math/transforms/orTransform.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2025-06-30 23:47:16 +0200
committerGloria Mundi <gloria@gloria-mundi.eu>2025-06-30 23:47:16 +0200
commitab40e44682b10ac6f99827f764d4c90d93d66722 (patch)
tree4b833924d21b36805c9cbab3a49a87d4ae69da89 /content/math/transforms/orTransform.cpp
parent59bea75c7c785e9012b0f3d677b9afbf93818fb4 (diff)
various minor changes
Diffstat (limited to 'content/math/transforms/orTransform.cpp')
-rw-r--r--content/math/transforms/orTransform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/math/transforms/orTransform.cpp b/content/math/transforms/orTransform.cpp
index 6503a68..1833ac5 100644
--- a/content/math/transforms/orTransform.cpp
+++ b/content/math/transforms/orTransform.cpp
@@ -3,6 +3,6 @@ void fft(vector<ll>& a, bool inv = false) {
for (int s = 1; s < n; s *= 2) {
for (int i = 0; i < n; i += 2 * s) {
for (int j = i; j < i + s; j++) {
- ll& u = a[j], &v = a[j + s];
- tie(u, v) = inv ? pair(u, v - u) : pair(u, v + u);
+ ll &u = a[j], &v = a[j + s];
+ v = inv ? v - u : v + u;
}}}}