This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: improving the complex number division
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: gcc at gcc dot gnu dot org, jerome dot houdayer at polytechnique dot org
- Date: 21 Apr 2003 15:35:05 +0200
- Subject: Re: improving the complex number division
- Organization: Integrable Solutions
- References: <20030419184630.3EE9BF2942@nile.gnat.com>
dewar at gnat dot com (Robert Dewar) writes:
| It is indeed surprising to find this entirely naive and quite incorrect
What actually surprised me is that neither Jérôme nor you noticed
that that implementation isn't being used for anything we have defined
semantics for.
| implementation of complex division in gcc. This is certainly a computation
| for which absolutely standard algorithms exist.
True. But, as noted in the reply I made to Jérôme's message, that
implementation wasn't never ever used for the cases the C++ standard
defined semantics for (i.e. specializations of std::complex<T> with
T=float, T=double, T=long double).
| I am not clear whether
| Jerome is quoting one of these standard algorithms
That is standard algorithm.
| (in which case a reference would be helpful),
I believe Goldberg's paper or G. Stewart's book on matrix computations
covers it.
-- Gaby