diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-10 16:18:23 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-10 16:18:23 -0400 |
commit | 05038becbe8907a1364db05c42fc1bc48f66ce56 (patch) | |
tree | ae4908fbb29fadb44e549af52a09d368387477e6 /src/ocean/ocean_alt.cpp | |
parent | 2820f2a620340feff973dfea26c1eb1172140ada (diff) |
Diffstat (limited to 'src/ocean/ocean_alt.cpp')
-rw-r--r-- | src/ocean/ocean_alt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ocean/ocean_alt.cpp b/src/ocean/ocean_alt.cpp index 0660a14..e0809a3 100644 --- a/src/ocean/ocean_alt.cpp +++ b/src/ocean/ocean_alt.cpp @@ -569,7 +569,7 @@ std::vector<Eigen::Vector2d> ifft_1d // calculate the twiddle factor int index = group * pow(2, stage) + butterfly; - float w = index * 2 * M_PI / pow(2, stage); + float w = -index * 2 * M_PI / pow(2, stage); Eigen::Vector2d twiddle_factor = {cos(w), sin(w)}; if (reading_buffer1) |