Bug#706376: [Pkg-octave-devel] Bug#706376: Bug#706376: octave: sparse matrix n*2^16

2013-05-04 Thread Ed Meyer
On Tue, Apr 30, 2013 at 6:37 AM, Jordi Gutiérrez Hermoso wrote: > On 29 April 2013 17:51, Ed Meyer wrote: > > > I'm not saying numel() is to blame or should be changed, only that I > > see no reason to ever use numel when handling sparse matrices unless > > you

Bug#706376: [Pkg-octave-devel] Bug#706376: Bug#706376: octave: sparse matrix n*2^16

2013-04-30 Thread Ed Meyer
On Tue, Apr 30, 2013 at 6:37 AM, Jordi Gutiérrez Hermoso wrote: > On 29 April 2013 17:51, Ed Meyer wrote: > > > I'm not saying numel() is to blame or should be changed, only that I > > see no reason to ever use numel when handling sparse matrices unless > > you

Bug#706376: [Pkg-octave-devel] Bug#706376: octave: sparse matrix n*2^16

2013-04-29 Thread Ed Meyer
On Mon, Apr 29, 2013 at 12:12 PM, Jordi Gutiérrez Hermoso < jord...@octave.org> wrote: > On 29 April 2013 14:50, Ed Meyer wrote: > > I'm not proposing using anything but octave_idx_type for indexing or > > changing the return type of numel() - I just question why nume

Bug#706376: [Pkg-octave-devel] Bug#706376: octave: sparse matrix n*2^16

2013-04-29 Thread Ed Meyer
Rather than restrict the size of sparse matrices I think it would make more sense to fix problems like this as they come up so that sparse storage is used as it was intended - to reduce storage & op count. -- Ed Meyer

Bug#706376: [Pkg-octave-devel] Bug#706376: octave: sparse matrix n*2^16

2013-04-29 Thread Ed Meyer
arse matrices are stored as three arrays and the nonzero and row index arrays are the only ones that need be limited. So you are saying that sparse matrices are treated as full in some places? -- Ed Meyer

Bug#706376: [Pkg-octave-devel] Bug#706376: octave: sparse matrix n*2^16

2013-04-29 Thread Ed Meyer
rge to be indexed, and this breaks > assumptions elsewhere in our code. > > - Jordi G. H. > I'm confused - this is a diagonal sparse matrix so you should be able to trace() (or any other op) up to n = 2^32, not n^2 = 2^32. The limit on sparse matrices should be number of non-zeros < 2^32 -- Ed Meyer