From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 2002-01-26 16:40:55
"Ralf W. Grosse-Kunstleve" <rwgk_at_[hidden]> writes:
| Regarding compatibility with existing C code:
| C does not have a complex type.
More precisely, C89 didn't have a complex type. C99 on the other hand
has introduced a _Complex T.
| Regarding compatibility with existing FORTRAN code:
| AFAIK FORTRAN COMPLEX are by definition stored as
| consecutive real values, real part first, imaginary
| part second.
Same in C99.
| My proposal is compatible with all existing implementations
| of std::complex that I know about, but formalizes
| assumptions that are commonly made in practice (this should
| include the assumption that the complex value is internally
| represented as a real and an imaginary part, as opposed to,
| e.g. an amplitude and an angle).
An ISO C++ conforming std::complex<> implementation cannot store
complex in (magnitude, phase) format.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk