-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow Complex valued FFT (#275)
* feat: Allow Complex valued FFT When using the FFT algorithm, previously there was only a method that used the `rfft` and `irfft` methods which rely on getting a Real array input. Added a method and specialization that uses the the old method for Real valued arrays and a new method that calls `fft` and `ifft` for other arrays. * feat: `rfft` optimization for `FFT` filtering Adds an optimization for filtering a complex with a real array so that it allows the real array to use `rfft` instead of `fft` to save half the computation. The benchmarks do not show a speed-up of a 1/4 which would theoretically be expected but a lower speed-up. For some reason do not show lower memory allocation. [fixes: #275]
- Loading branch information
Showing
2 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters