octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: round-off error in std::pow(std::complex<T>, double) in C++11


From: Paolo Carlini
Subject: Re: round-off error in std::pow(std::complex<T>, double) in C++11
Date: Fri, 25 Jan 2013 16:44:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

.. oops, I just noticed what Marc suggested in the PR about changing pow(const complex<>&, const _Tp&) to *actually* forward to the complex builtins when not fast math. That seems a good idea, because we are normally *not* forwarding directly to the builtins in this specific mixed case, sorry I was wrong. I'd like to ear Gaby about this, however, because even for not fast math it seems a bit weird to not exploit the knowledge that the exponent is real...

Paolo.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]