Boost logo

Boost :

From: nbecker_at_[hidden]
Date: 2001-11-01 08:34:28


In the current gcc, norm of complex is defined in terms of abs. I
believe the definition should be changed to:

norm(z) = sqr(real(z)) + sqr (imag (z))

My reasons are:

1. More efficient
2. Works for complex<int> (important in DSP)
3. Possibly more accurate

I have started a discussion on gcc_at_[hidden] on this subject. I'm
wondering if any of you have an opinion.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk