Does this use vector extensions where available?
Automatic vectorization is extremely limited, in all compilers.
Check this out, feel free to merge if it works in reality not just in the test: https://github.com/Const-me/prettyeq/tree/master
Did you test against pulseeffects cpu usage?
If OP did that, I probably wouldn’t bother to improve their code: https://github.com/Const-me/prettyeq/tree/master
While my primary motivation was “for lulz”, possibility to reuse the code whenever I need a fast 1D FFT also contributed.