On 9/12/23 11:25, Richard Biener wrote:
On Tue, Sep 5, 2023 at 10:44 PM Toon Moene <t...@moene.org> wrote:
This is even obvious in weather forecasting software I have to deal with
*today* (all written in Fortran). Some models use complex variables to
encode the "spectral" (wave-decomposed) computations in parts where that
is useful - others just "degrade" those algorithms to explicitly use reals.
Lack of applications / benchmarks using complex numbers is also a
problem for any work on this.
Yes, a certain amount of circular "reasoning" is at work here.
However, there is sufficient Fortran programming out there to study how
to compile complex number arithmetic ... LAPACK and its test programs.
I realize that they are not "benchmarks" in the sense that they do not
give you a measure how to speed up the code the compiler generates; but
they are real-life complex number algorithms coded in a programming
language that had complex number support from the beginning.
Hope this helps,
--
Toon Moene - e-mail: t...@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands