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

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

[Octave-bug-tracker] [bug #34328] Can't set entries in single-precision


From: Nir Krakauer
Subject: [Octave-bug-tracker] [bug #34328] Can't set entries in single-precision complex matrices to real values
Date: Sun, 18 Sep 2011 23:21:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

URL:
  <http://savannah.gnu.org/bugs/?34328>

                 Summary: Can't set entries in single-precision complex
matrices to real values
                 Project: GNU Octave
            Submitted by: nir_krakauer
            Submitted on: Sun 18 Sep 2011 11:21:24 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Nir Krakauer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:


With a single-precision complex matrix, e.g.


Y = i * ones(2, 2, "single");


An error is returned when setting an entry to a real value:


Y(1, 1) = 3

error: operator =: no conversion for assignment of `scalar' to indexed `float
complex matrix'
error: assignment failed, or no method for `float complex matrix = scalar'


Setting to a complex or imaginary value works fine, as in


Y(1, 1) = 5 + 2*i

Y =

   5 + 2i   0 + 1i
   0 + 1i   0 + 1i








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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