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

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

[Octave-bug-tracker] [bug #41426] OOM for issymmetric on sparse matrices


From: David Bateman
Subject: [Octave-bug-tracker] [bug #41426] OOM for issymmetric on sparse matrices
Date: Sun, 02 Feb 2014 16:31:22 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #2, bug #41426 (project octave):



retval = any ((x != x.')(:));


seems slightly faster for full matrices and about the same speed as the
original code, but the "(:)" creates an out of memory error for large sparse
matrices as well. The difference in speed for the two versions for full
matrices only seems to be about 5% so maybe we should just take your patch as
is otherwise something like


if (issparse (x))
  retval = nnz (x != x.') == 0;
else
  retval = all ((x == x.')(:));
endif


might be appropriate 

D.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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