Slicing in sparse
Kim Hansen
kimhanse at gmail.com
Mon Dec 3 14:34:16 CST 2007
On Dec 3, 2007 5:29 PM, David Bateman <David.Bateman at motorola.com> wrote:
>
> Please try the following patch
>
Thanks, it solved my problem.
There is still a few differences left between sparse and full:
octave:4> x=sparse(ones([2 0])); x(1)=2
x = Compressed Column Sparse (rows = 1, cols = 1, nnz = 1)
(1, 1) -> 2
octave:5> x=ones([2 0]); x(1)=2
error: A(I) = X: unable to resize A
error: assignment failed, or no method for `matrix = scalar'
error: evaluating assignment expression near line 5, column 20
octave:5> x=sparse(ones([2 0])); x(3,:)=2
x = Compressed Column Sparse (rows = 2, cols = 0, nnz = 0)
octave:6> x=ones([2 0]); x(3,:)=2
x = [](3x0)
octave:7>
--
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437 -- Mobil: 3091 2437
More information about the Bug-octave
mailing list