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

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

[Octave-bug-tracker] [bug #36656] deleting rows from sparse matrices lea


From: David Bateman
Subject: [Octave-bug-tracker] [bug #36656] deleting rows from sparse matrices leads to failed assertion sometimes
Date: Thu, 14 Jun 2012 16:11:14 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0

Follow-up Comment #4, bug #36656 (project octave):

Given the assertion that is failing this is the same issues as for the bug
#36104. With the same fix

http://hg.savannah.gnu.org/hgweb/octave/rev/8d2ce821e38a

That is somewhere the constructor

rep = new SparseRep (nr, nc);

and it needs to be replaced with 

rep = new SparseRep (nr, nc, 0);

to ensure that the values in ridx are valid. In fact given this issue the
constructor SparseRep(nr,nc) probably shouldn't be used. So the easiest fix
would be just to rewrite this to use SparseRep(nr,nv, 0) instead.

D.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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