Created attachment 492 [details]
use temporary buffer if in-place fft is requested with kissfft backend
The fftw backend will do an in-place operation if you supply the same buffer as input and output parameters. The kissfft-based backend is an out-of-place algorithm.
The supplied patch tries to detect when the input and output buffers are the same buffer and uses a temporary buffer as described in the "UNDER THE HOOD" section of kiss_fft130/README.
We need somebody who know the FFT module to comment on this. It makes sense to me, but instead of testing for the input and output buffers to be equal it would be better to test whether they overlap. Better documentation would also be welcome.
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/868.