[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45932] ifft(fft(x)) is not real for x real
From: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #45932] ifft(fft(x)) is not real for x real |
Date: |
Thu, 25 Jan 2018 02:43:10 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #3, bug #45932 (project octave):
I do not think that removing the imag part if small is safe. The problem in
fact is the choice of K. But, there is no heuristic. In xhat of the original
example, xhat(1+i) is exactly equal to conj(xhat(n+1-i)). This should be the
check and the only case in which to apply the zeroing of the imaginary part.
As a second step, I think to remember that there is a proper function in FFTW
to manage this case, which does not compute at all the imaginary part, but
Octave does not use it (at least, when I submitted the report).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45932>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/