Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes inverse FFT ouput order issue #29

Merged
merged 3 commits into from
May 3, 2024
Merged

Fixes inverse FFT ouput order issue #29

merged 3 commits into from
May 3, 2024

Conversation

smu160
Copy link
Member

@smu160 smu160 commented May 3, 2024

This PR should address issue #24.

TL;DR

There's a bug in the original implementation of reverse (i.e., inverse FFT). I've yet to figure out a direct fix. Nevertheless, one can compute the inverse FFT using the forward FFT [1].

Inverse_FFT_Figure4[2]

Note this is meant to be a stop-gap solution until I get to the bottom of the underlying issue.

References

[1]
[2]

@smu160 smu160 added the bug Something isn't working label May 3, 2024
@smu160 smu160 requested a review from Shnatsel May 3, 2024 16:18
@smu160 smu160 self-assigned this May 3, 2024
@smu160 smu160 marked this pull request as ready for review May 3, 2024 16:18
@smu160 smu160 linked an issue May 3, 2024 that may be closed by this pull request
@smu160 smu160 marked this pull request as draft May 3, 2024 16:22
- Testing that all the values in the forward twiddle factors pointwise
multiplied by all the values in the inverse twiddle factors is more of a
unit test for twiddles. It made no sense to keep it in the planner.

- The previous commit modifies the planner in a way that this test would
  no longer pass. We can get the same, good coverage by keeping this
  test under twiddles.
@codecov-commenter
Copy link

codecov-commenter commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.15%. Comparing base (48a8d15) to head (aaa6a89).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   96.99%   97.15%   +0.15%     
==========================================
  Files           7        7              
  Lines         698      737      +39     
==========================================
+ Hits          677      716      +39     
  Misses         21       21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@smu160 smu160 marked this pull request as ready for review May 3, 2024 16:54
@smu160 smu160 merged commit a715f81 into main May 3, 2024
8 checks passed
@smu160 smu160 deleted the hotfix branch May 3, 2024 17:18
@smu160 smu160 mentioned this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discrepancy in Inverse FFT output order
2 participants