bugGNU Octave - Bugs: bug #32263, Assignment failure on...


bug #32263: Assignment failure on non-preallocated sparse matrices

Submitted by:  Guillaume <gyom>
Submitted on:  Thu 27 Jan 2011 04:38:36 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 31 Jan 2011 10:13:43 PM UTC, comment #3: 

Thanks, I checked in the following changeset.


John W. Eaton <jwe>
Project Administrator
Mon 31 Jan 2011 03:29:22 PM UTC, comment #2: 

This fix has a problematic side-effect on this example:

octave> clear a
octave> a(1,1) = sparse(1)
error: can't resize to negative dimension

Guillaume <gyom>
Thu 27 Jan 2011 10:03:10 PM UTC, comment #1: 

I checked in the following changeset:


It seems to fix the problem for me, so I'm closing this report.

John W. Eaton <jwe>
Project Administrator
Thu 27 Jan 2011 04:38:36 PM UTC, original submission:  

The following examples return the error 'A(I,J,...) = X: dimensions mismatch' in Octave:

clear a b;
a = speye(3);
b(:,1) = a(:,1);

clear a
a(1,:) = sparse(1,3,1,1,3)

while MATLAB returns sparse matrices.

Guillaume <gyom>


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

Attach Files:

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 jwe (Posted a comment)
  • -email is unavailable- added by gyom (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-27 jwe StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.5