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

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

[Octave-bug-tracker] [bug #40341] Logical indexing into sparse matrices


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #40341] Logical indexing into sparse matrices causes OOM
Date: Fri, 07 Feb 2014 14:31:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 Iceweasel/26.0

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

A simple workaround is to use find:


a = sprand(100000,100000,0.0001);
b = logical(sprand(100000,100000,0.0001));
[i,j] = find(b);
a(i,j) = 0; 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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