Hybrid Dealiasing and Implicit Packing for Real Convolutions
Abstract
Hybrid dealiasing is an FFT-based method for computing linear convolutions of complex-valued data that reduces the cost of dealiasing by performing zero padding implicitly. We develop two new algorithms that extend hybrid dealiasing to real-valued convolutions. The first algorithm exploits conjugate symmetries in the transformed data and computes each residue contribution directly. The second algorithm employs complex-valued hybrid dealiasing via a new implicit packing technique, which packs real-valued data into complex-valued arrays and performs all unpacking and packing operations implicitly in the transformed domain. Multidimensional versions of both algorithms are obtained by recursive decomposition into lower-dimensional convolutions. Based on these algorithms, efficient routines to compute convolutions of equal-length input arrays are implemented in the open-source FFTW++ library. These routines outperform the standard method of explicit zero padding in one, two, and three dimensions. In many cases, implicit packing without hybrid dealiasing is nearly as fast as the general hybrid dealiasing algorithm, particularly when multithreading.
Disclosure
“4 as required. Acknowledgements. The authors thank Robert Joseph George for discussions regarding the extension of hybrid dealiasing to arrays of different sizes. The authors also acknowledge the use of ChatGPT and Qwen3.6 during the preparation of this manuscript to assist with code development, correct grammar and typographical er- rors, and improve the clarity and style of the text. The authors assume responsibility for all content. Financial support”
PDF page 18
- Classification
- Code generation, completion, or debugging
- Multiplier
- 2
- Verified
Structural counts
Count notes
- Source counts use the expanded primary TeX file real.tex.
- Appendix pages include the first PDF page with an explicit Appendix heading through the final page.