octave-bug-tracker
[Top][All Lists]
Advanced

[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: Tue, 25 Jan 2022 12:48:46 -0500 (EST)

Follow-up Comment #5, bug #61912 (project octave):

So, the original test case was unfair to complex().  The code was


z = complex (0, val);
OR
z = i*val;


In the multiplication situation I wasn't creating a real part while complex
had to deal with that even though the value was 0.  A proper comparison is


z = 0 + i*val;


Nevertheless, on my machine the vector has to be pretty big, ~5,500, before
complex is faster.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61912>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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