This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: this seems to lost (complex norm, abs)


Gabriel Dos Reis wrote:
> 
> Levente Farkas <lfarkas@mindmaker.hu> writes:
> 
> | it contains 2 abs, 2 addition, 2 division, 3 multilication and 1 sqrt
> | may be a few cosine and tan help a bit more:-)
> 
> You forgot erf(), gamma(), and some bits of Laplace transform().
> 
> No seriously, I don't sarcasm is an appropriate setting for technical
> discussion.  The "advanced" algorithm is to cover cases where the
> grammar school algorithm is intolerable.  That is not fiction.

yes I understand Theodore's explanation (since he points to the 
problem). than (at least in case of the complex specializations case)
I would use hypot which probably more "advanced" in most case (i.e.
optimized for the given platform...), but yes it's not a bug just
my 2c.
 
> I think the root of the bug is elsewhere.

there is no bug in abs, but I still think norm can be much simpler
(as it's suggested in http://gcc.gnu.org/ml/libstdc++/2001-08/msg00165.html)

 -- Levente                               "Si vis pacem para bellum!"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]