This is the mail archive of the
mailing list for the GCC project.
Re: Bug in complex::norm
- To: nbecker at fred dot net
- Subject: Re: Bug in complex::norm
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 22 Aug 2001 07:30:27 +0200
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <firstname.lastname@example.org>
| I just updated to gcc-3.0.1 and found a problem with the
| implementation of complex::norm.
| It seems that norm is now defined in terms of abs!
I don't recall what was the previous definition. Why do you think it
is now wrong? (Just a question, since I'm far from home and I don't
have an autorithative reference). For float, double, and long double
(which are the types for which complex<T> is specified), that is
| This is not
| efficient and is wrong for non-float types.
Is complex<T> required to work with non-floating point types T?
CodeSourcery, LLC http://www.codesourcery.com