[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in 4.2.0 is slower than in 4.0.3 |
Date: |
Tue, 22 Nov 2016 20:22:05 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #5, bug #49667 (project octave):
Correct, I believe it is because the std::pow(std::complex<T>, int) overload
was conditionally compiled out of existence in earlier versions of gcc when
using the -std=gnu++11 or -std=gnu++0x command-line option, but was available
when building in (previously the default) C++98 mode.
With gcc 5, the specialization was reinstated when building in C++11 mode, and
the performance is as it was.
I think a user on Ubuntu 14.04 or Mint 17 could confirm this by using gdb or
perf and showing that the inline function std::__complex_pow_unsigned is *not*
being called at all. But I've looked at this for about a half hour now and I'm
pretty convinced by inspection that this is the case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49667>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in 4.2.0 is slower than in 4.0.3, Marco Caliari, 2016/11/22
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in 4.2.0 is slower than in 4.0.3, Mike Miller, 2016/11/22
- [Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in 4.2.0 is slower than in 4.0.3, John W. Eaton, 2016/11/22
- [Octave-bug-tracker] [bug #49667] Computing powers of complex numbers in 4.2.0 is slower than in 4.0.3,
Mike Miller <=
- [Octave-bug-tracker] [bug #49667] Computing integer powers of complex numbers in 4.2.0 is slower than in 4.0.3 with GCC 4.8, Mike Miller, 2016/11/22
- [Octave-bug-tracker] [bug #49667] Computing integer powers of complex numbers in 4.2.0 is slower than in 4.0.3 with GCC 4.8, Marco Caliari, 2016/11/23
- [Octave-bug-tracker] [bug #49667] Computing integer powers of complex numbers in 4.2.0 is slower than in 4.0.3 with GCC 4.8, Mike Miller, 2016/11/23