bugGNU Octave - Bugs: bug #62261, Cannot do broadcasting with eig in...

 
 

bug #62261: Cannot do broadcasting with eig in Octave 7?

Submitter:  None
Submitted:  Thu 07 Apr 2022 02:03:18 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Wont Fix Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 07 Apr 2022 04:59:22 AM UTC, comment #2: 

This is a consequence of the change to the way ranges are generated.  This code


y = (int8(2):int8(4))' + (int8(5):int8(7))


produces a result which is double in Octave 6.X and of type int8 in Octave 7.1.

The new behavior is correct.  If you want to use int8 ranges then wrap them in a call to double() before calling eig().

Rik <rik5>
Group administrator
Thu 07 Apr 2022 02:22:16 AM UTC, comment #1: 

Ohh i see what happening, it looks like eig is the same but the old matrix was double SpongeBob

Anonymous
Thu 07 Apr 2022 02:03:18 AM UTC, original submission:  

Test driving the new Octave 7. This works with Octave 6 but not Octave 7:


eig ((int8(2):int8(4))' + (int8(5):int8(7)))


Is this a bug?

Anonymous

 

(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 rik5 (Posted a comment)
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-07 rik5 CategoryNone Interpreter
        Item GroupNone Regression
        StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code