|
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/
[Prev in Thread] | Current Thread | [Next in Thread] |