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

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

[Octave-bug-tracker] [bug #35570] Indexing of sparse vectors


From: Rik
Subject: [Octave-bug-tracker] [bug #35570] Indexing of sparse vectors
Date: Mon, 20 Feb 2012 20:05:53 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Follow-up Comment #1, bug #35570 (project octave):

The bug is even a bit odder than it first seems.  If the range is not exactly
over the entire column then the range index works correctly.  Also, if the
matrix has more than one column the indexing works.

Examples:


s = sparse (5, 1);
s(3,1) = 1;

s(4:-1:1)   # Works because start of range is not 5
s(5:-1:2)   # Works because end of range is not 1

s = sparse (5, 2);
s(3,1) = 1;
s(5:-1:1, 1) # Works because matrix has another column



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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