bugGNU Octave - Bugs: bug #51583, eig(L,'vector') fails on Octave -...

 
 

bug #51583: eig(L,'vector') fails on Octave - works on Matlab

Submitter:  Tom <madtom1999>
Submitted:  Wed 26 Jul 2017 11:50:48 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Jul 2017 11:07:50 PM UTC, comment #1: 

Happily this has already been fixed.  You report using Octave version 4.0.0 which is deprecated and no longer supported.  Please use the latest stable version which is 4.2.1.  I tried your sample code in 4.0.0 where it does fail, and in 4.2.1 where it executes cleanly.

Rik <rik5>
Group administrator
Wed 26 Jul 2017 11:50:48 AM UTC, original submission:  

The following code works fine on Matlab but fails on Octave:
-----------------------------------------------------------
% Form the matrix of weights based on the graph
N = 11;
W = zeros(N,N);
W(1,2) = 0.5;
W(1,5) = 0.5;
W(2,3) = 0.6;
W(3, 4) = 0.6;
W(4,5) = 0.6;
W(4,6) = 0.1;
W(5, 7) = 0.2;
W(6,7) = 0.8;
W(7,8) = 0.4;
W(8,9) = 0.5;
W(9,10) = 0.7;
W(10,11) = 0.7;
W(11,6) = 0.8;
% Since it's undirected add on the transpose to assign the edges in the
% other direction
W = W + W';
% Examine the structure of the weights matrix
spy(W)
% Form the degree matrix, D
D = diag(sum(W,2));
% Form the Laplacian
L = D - W;
% Find the eigenvectors and eigenvalues
[evec,eval] = eig(L, 'vector');
error: eig: wrong type argument 'sq_string'
---------------------------------------------
using [evec,eval] = eig(L, "vector");
error: eig: wrong type argument 'string'
---------------------------------------------
Tom

Tom <madtom1999>

 

(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)
  • -email is unavailable- added by madtom1999 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-26 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code