Expand description
FFTW Plan Cache for performance optimization
Caches FFTW plans to avoid expensive plan creation on repeated FFT calls. Plans are stored in global caches keyed by size (1D) or dimensions (2D).
Note: Plans require &mut self for execution, so we use Mutex to ensure exclusive access. This is fine for Python bindings where the GIL serializes calls.
Functionsยง
- clear_
all_ caches - Clear all cached plans (useful for testing or memory management)
- execute_
c2c_ 2d_ backward - Execute 2D C2C backward FFT with cached plan
- execute_
c2c_ 2d_ forward - Execute 2D C2C forward FFT with cached plan
- execute_
c2c_ backward - Execute C2C backward (inverse) FFT with cached plan
- execute_
c2c_ forward - Execute C2C forward FFT with cached plan
- execute_
c2r - Execute C2R (inverse real) FFT with cached plan
- execute_
c2r_ 2d - Execute 2D C2R FFT with cached plan
- execute_
dct2 - Execute DCT-II with cached plan
- execute_
dst2 - Execute DST-II with cached plan
- execute_
idct2 - Execute IDCT-II (DCT-III) with cached plan
- execute_
idst2 - Execute IDST-II (DST-III) with cached plan
- execute_
r2c - Execute R2C FFT with cached plan
- execute_
r2c_ 2d - Execute 2D R2C FFT with cached plan