Slicing in sparse

David Bateman David.Bateman at motorola.com
Mon Dec 3 10:29:42 CST 2007


Kim Hansen wrote:
> 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,
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Bug-octave mailing list
> Bug-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/bug-octave
>   
Please try the following patch

D.


-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch42
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071203/e5b0268d/attachment.ksh 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch42.changelog
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071203/e5b0268d/attachment-0001.ksh 


More information about the Bug-octave mailing list