[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36741] Different result is obtained with full
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #36741] Different result is obtained with full and sparse matrices |
Date: |
Thu, 14 Mar 2013 18:49:01 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
Follow-up Comment #3, bug #36741 (project octave):
It looks like sparse is checking the orientation of the index vector, rather
than recognizing that the vector is in the row position and so must produce a
row vector output.
Sample Code:
octave:12> xs = sparse (1)
xs = Compressed Column Sparse (rows = 1, cols = 1, nnz = 1 [100%])
(1, 1) -> 1
octave:13> xs([1;1], 1)
ans =
Compressed Column Sparse (rows = 2, cols = 1, nnz = 2 [100%])
(1, 1) -> 1
(2, 1) -> 1
octave:14> xs([1,1], 1)
ans =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 2 [100%])
(1, 1) -> 1
(1, 2) -> 1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36741>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #36741] Different result is obtained with full and sparse matrices,
Rik <=