[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45589] sparse is fussy about dimension mismat
From: |
Ceral Paquet |
Subject: |
[Octave-bug-tracker] [bug #45589] sparse is fussy about dimension mismatching |
Date: |
Thu, 23 Jul 2015 18:31:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #2, bug #45589 (project octave):
Matlab tolerates it, I just checked.
% below is from Matlab 2013a
>> A=zeros(4,4);
>> A(:,1)=1:4
A =
1 0 0 0
2 0 0 0
3 0 0 0
4 0 0 0
>> A(1,:)=1:4
A =
1 2 3 4
2 0 0 0
3 0 0 0
4 0 0 0
>> A=sparse(4,4);
>> A(:,1)=1:4
A =
(1,1) 1
(2,1) 2
(3,1) 3
(4,1) 4
>> A(1,:)=1:4
A =
(1,1) 1
(2,1) 2
(3,1) 3
(4,1) 4
(1,2) 2
(1,3) 3
(1,4) 4
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45589>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/