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

Rader's algorithm Imaginary Part Sign Issue #1

Open
Danc2050 opened this issue Feb 8, 2024 · 0 comments
Open

Rader's algorithm Imaginary Part Sign Issue #1

Danc2050 opened this issue Feb 8, 2024 · 0 comments

Comments

@Danc2050
Copy link

Danc2050 commented Feb 8, 2024

Comparing Rader's algorithm to the Jax's FFT (jnp.fft.fft), the arrays are nearly the same, except for the sign in the imaginary part is often flipped. Here is an example for two arrays:

rader: [ 5.0450296 +0.j         -0.88408756+1.5039028j  -0.25362217+0.112124j
 -0.19672948+0.22919299j  0.38429442-0.5026276j  -0.09411531-0.15777384j
 -0.09411531+0.15777384j  0.38429442+0.5026276j  -0.19672948-0.22919299j
 -0.25362217-0.112124j   -0.88408756-1.5039028j ]
jax.numpy.fft.fft: [ 5.04503   +0.j         -0.88408756-1.5039027j  -0.25362217-0.112124j
 -0.19672951-0.22919303j  0.3842943 +0.5026276j  -0.09411524+0.15777388j
 -0.09411524-0.15777388j  0.3842943 -0.5026276j  -0.19672951+0.22919303j
 -0.25362217+0.112124j   -0.88408756+1.5039027j ]

Here is a GPT produced description of the differences:
Sign issues in imaginary part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant