|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
Complex FFT on interleaved data (Stockham radix-4 engine, SIMD). More...
#include <FFT.h>
Public Member Functions | |
| FFTComplex (size_t size) | |
| Constructs an FFT processor for the given size. | |
| size_t | getSize () const noexcept |
| Returns the FFT size (number of complex points). | |
| void | forward (T *data) noexcept |
| Performs a forward (time->frequency) FFT in-place. | |
| void | inverse (T *data) noexcept |
| Performs an inverse (frequency->time) FFT in-place. | |
Static Public Member Functions | |
| static size_t | allocationBytes (size_t size) noexcept |
| Upper bound of the heap bytes a constructor of this size requests, excluding the object itself, with up to 64 bytes per allocation for standard-library bookkeeping. Allocates nothing; use it to budget memory before constructing. The count depends on the build's kernel sets. | |
Complex FFT on interleaved data (Stockham radix-4 engine, SIMD).
Data layout: interleaved [re0, im0, re1, im1, ...], total 2*N elements. The transform is in place from the caller's view (the engine works in its own buffers).
| T | Sample type (float or double). |
|
inlineexplicit |
|
inlinestaticnoexcept |
Upper bound of the heap bytes a constructor of this size requests, excluding the object itself, with up to 64 bytes per allocation for standard-library bookkeeping. Allocates nothing; use it to budget memory before constructing. The count depends on the build's kernel sets.
| size | Number of complex samples: a power of two >= 2 (other sizes return 0). |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |