Bug in complex::norm
Branko
Branko
Wed Aug 22 14:40:00 GMT 2001
Joern Rennecke wrote:
>>I don't recall if I changed norm's implementation, and if so I don't
>>recall why. But we should have a less inefficient implementation.
>>
>
>Is norm required to be the euclidian norm? I would think that it is
>faster to compute the maximum norm.
>
26.2.7p5 says that norm returns the squared magnitude of its argument,
so it's required to be the euclidean norm.
--
Brane Čibej <brane@xbc.nu> http://www.xbc.nu/brane/
More information about the Gcc
mailing list