[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61912] Slow performance of complex()
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #61912] Slow performance of complex() |
Date: |
Wed, 26 Jan 2022 12:41:28 -0500 (EST) |
Follow-up Comment #11, bug #61912 (project octave):
I tried one more syntax hoping that avoiding the Complex constructor would
save some time since the Complex NDArray already has zero-initialized
Complex() values. But, it made maybe a 2% difference so not really worth it.
for (octave_idx_type i = 0; i < re_val.numel (); i++)
{
result.xelem (i).real (re_val.xelem (i));
result.xelem (i).imag (im_val.xelem (i));
//result.xelem (i) = Complex (re_val(i), im_val(i));
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61912>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), (continued)
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Dmitri A. Sergatskov, 2022/01/24
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Arun Giridhar, 2022/01/24
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/24
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/24
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/25
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/25
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), John W. Eaton, 2022/01/26
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Hg200, 2022/01/26
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Markus Mützel, 2022/01/26
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/26
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(),
Rik <=
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Rik, 2022/01/28
- [Octave-bug-tracker] [bug #61912] Slow performance of complex(), Markus Mützel, 2022/01/30