[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pkg-octave-devel] Bug#394982: octave2.9: Crashes on "x(:,

From: Kim Hansen
Subject: Re: [Pkg-octave-devel] Bug#394982: octave2.9: Crashes on "x(:,
Date: Thu, 26 Oct 2006 07:44:47 +0200

On 10/26/06, David Bateman <address@hidden> wrote:

Note that this is still a very bad idea as it reallocates the memory to
the sparse matrix and every assignment, even if you size the initial
matrix correctly. This is due to the fact that only enough space for the
nonzeros is ever created... I'd therefore highly recommended forming
vectors of row, col and value and use the sparse function instead. This
is discussed in the sparse section of the manual....

I have just read that section now, it is really a good section. I can
see that some of my functions should be rewritten to the row,col,value

If I append data at the end of a sparse matrix it should be possible
to extend it without the reallocation, but I can see that is not how
it works right now. Is that something I could change octave to support
or is it a limitation from some libraries it would be difficult to
work around?

Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437  --  Mobil: 3091 2437

reply via email to

[Prev in Thread] Current Thread [Next in Thread]