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

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

[Octave-bug-tracker] [bug #46816] Assignment error: complex single preci


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #46816] Assignment error: complex single precision
Date: Fri, 08 Jan 2016 03:30:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #6, bug #46816 (project octave):

jwe, you are probably right.  I just looked at the execution flow for
assignment of real floats to an array slice of doubles, and mirrored that for
complex numbers.

One possible reason to handle assignment conversions differently is that
assigning to an array slice will affect the type of the rest of the array. 
Normally (single, double) results in single, but for (indexed) assignment it
results in double, which means that other elements of the array are unaffected
as expected.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46816>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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