Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
I can confirm I get the correct result, as in comment #4. Closing report as fixed (even though I don't know what change fixed this).
Using version 6.1.0
>> x = sparse(100000,30000); >> x(end, end) = 1; >> i = find(x) i = 3.0000e+09
This issue is still present in Octave 4.2.0.
The code example from comment #0 still gives a large negative number.
I can still confirm the problem for the current development version. But I think the patch goes too far for just applying it.
This is fixed by adding a method to translate directly from row-column pairs to doubles and then multiplying. I rewrote find with templates so that all calls to find go to the same place (as I already tried to do once, but this time I have a better understanding of the core of Octave so I could do it "right").
I've attached my patch. It's changesets 18792 and 18793 on my clone of Octave at https://dspyz@bitbucket.org/dspyz/octave Note that this patch goes on top of 18791 which removes _colp from permutation matrices.
(file #31432)
The indices returned by "find" overflow on large matrices:
octave:1> x = sparse(100000,30000); octave:2> x(end, end) = 1; octave:3> i = find(x) i = -1.2950e+09
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9