bugGNU Octave - Bugs: bug #42333, Variable type not compatible in...

 
 

bug #42333: Variable type not compatible in addition statement

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Sun 11 May 2014 06:08:53 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Dec 2016 04:48:09 PM UTC, comment #3: 

Nice, I get to close a bug report.  Thanks for checking on all these outstanding reports.

Rik <rik5>
Group administrator
Thu 15 Dec 2016 04:06:19 PM UTC, comment #2: 

This issue seems to be FIXED in Octave 4.2.0.

Running the sample code from comment #0 does not throw any error any more. (Running the same code in Octave 4.0.3 does give me an error.)

Hartmut <hardy>
Sun 11 May 2014 11:52:57 PM UTC, comment #1: 

Confirmed.  This bug has been present since at least version 3.4.3.  Interestingly, the reverse of assiging a double complex matrix to a single real matrix works.


temp=zeros(256,64,4, "single");
q=double(temp)+i;
temp(:,:,1)=q(:,:,1);


Rik <rik5>
Group administrator
Sun 11 May 2014 06:08:53 PM UTC, original submission:  


>> temp=zeros(256,64,4);
>> q=single(temp)+i;
>> temp(:,:,1)=q(:,:,1);

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

Ceral Paquet <octavebugs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-15 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release3.8.1 4.2.0
    2014-05-11 rik5 CategoryNone Interpreter
        Item GroupNone Incorrect Result
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code