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

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

[Octave-bug-tracker] [bug #40324] Concatenating Sparse matrices throws O


From: David Bateman
Subject: [Octave-bug-tracker] [bug #40324] Concatenating Sparse matrices throws OOM
Date: Mon, 21 Oct 2013 20:40:27 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

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

How exactly do you "patch" numel ? This method is doing what it supposed to do
for sparse matrices, but given the limitation of 32 bit integers it will never
return the right value for large sparse matrices. The only "patch" I can
imagine that has a chance of fixing this is to always use 64 bit integers for
numel for all types, and even that won't fix


s = speye (2^32);
q = [s, s];
 

when Octave is built with 64 bit integers. Though you might argue that it'll
be a while till we'll see matrices this large. In this case, the special case
is justified as sparse matrices don't even use the 1x1 optimisation in
pt-mat.cc

So for your question, yes I think its worth avoiding numel wherever possible
when dealing with sparse matrices

David


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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