sparse indexing issue
David Bateman
David.Bateman at motorola.com
Tue Dec 18 09:52:23 CST 2007
John W. Eaton wrote:
> On 18-Dec-2007, David Bateman wrote:
>
> | Kim Hansen wrote:
> | > On 12/17/07, David Bateman <David.Bateman at motorola.com> wrote:
> | >
> | >> Thomas Kasper wrote:
> | >>
> | >>> Bug report for Octave 2.9.19+ configured for i686-pc-linux-gnu
> | >>>
> | >>> Description:
> | >>> -----------
> | >>> row and column reproduction via index operations do not seem
> | >>> to work properly for sparse matrices
> | >>>
> | >
> | > I am not sure if this is the same or an other bug, but this is a
> | > little surprising:
> | > =============
> | > octave:1> sparse(42)([1 1])
> | > ans =
> | >
> | > Compressed Column Sparse (rows = 1, cols = 2, nnz = 2)
> | >
> | > (1, 2) -> 42
> | > (1, 2) -> 42
> | > =============
> | >
> | >
> | Its the same bug.. I'm working on it, but its fighting back :-)
>
> How is this a bug? I thought that was the expected behavior when
> indexing a 1x1 object with a matrix in Matlab.
>
> jwe
>
>
Its a bug since both elements are indexed as (1,2)
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
More information about the Bug-octave
mailing list