kfr icon indicating copy to clipboard operation
kfr copied to clipboard

Fix bug: incorrect result of real dft when input size != 4N

Open gopher2008 opened this issue 4 years ago • 0 comments

The implementation of real DFT has bug: when input size is even but not equal to 4N, the result is incorrect. This is due to:

  1. incorrect calculation of twiddle factors
  2. to_fmt/from_fmt also needs special process according to csize is even/odd

An new unit test has also been added showing this bug.

gopher2008 avatar Nov 03 '21 13:11 gopher2008