Slicing in sparse
Kim Hansen
kimhanse at gmail.com
Mon Dec 3 07:28:51 CST 2007
Slicing in sparse matrices do not do the same as full matrices in some
corner cases:
octave:2> m=[true false];
octave:3> f=zeros(0,2);
octave:4> s=sparse(f);
octave:7> f(:,m)=0
f = [](0x2)
octave:8> s(:,m)=0
s =
Compressed Column Sparse (rows = 1, cols = 2, nnz = 0)
octave:9>
I have attached a new test that compares the behaviour of sparse and
full, the test works but it contains 12 known errors marked with
xtest.
Regards,
--
Kim Hansen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_slice_sparse.m
Type: application/octet-stream
Size: 5011 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071203/29c73fa6/attachment.obj
More information about the Bug-octave
mailing list