Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Real to Complex FFT #85

Closed
tknopp opened this issue Aug 21, 2022 · 0 comments · Fixed by #87
Closed

Real to Complex FFT #85

tknopp opened this issue Aug 21, 2022 · 0 comments · Fixed by #87

Comments

@tknopp
Copy link
Contributor

tknopp commented Aug 21, 2022

I wonder why the FourierTransform operator uses a regular fft instead of an rfft in:
https://github.com/SciML/NeuralOperators.jl/blob/main/src/Transform/fourier_transform.jl#L10
Or am I missing something there?

If I read the code further, it seems that the negative frequencies are never recovered but keep zero after padding. This, however, would mean that the ifft will not generate a real signal and even the real part does not correspond to what one would expect when doing rfft and irfft.

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

Successfully merging a pull request may close this issue.

1 participant