[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45963] sparse matrices with negative size
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #45963] sparse matrices with negative size |
Date: |
Wed, 16 Sep 2015 12:25:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0 |
Follow-up Comment #3, bug #45963 (project octave):
Yes, we should detect dimensions that are out of range properly and avoid
generating negative dimensions.
However, there are some other issues with dimensions of sparse matrices that
tend to annoy people and that may be harder to fix. For example, there is no
problem creating the following matrix
x = sparse (1)
x(1e6, 1e6) = 1
but the expression x(:) will fail because the linear index of the last element
(1e12) is too large to be an index, at least with 32-bit indexing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45963>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/