[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: Wed, 25 Oct 2006 13:20:30 +0200

On 10/25/06, David Bateman <address@hidden> wrote:
Ok, Please consider the attached patch. Note that this implies a double
reassignment of the lhs, but really this is a crazy thing to do, so as
long as it doesn't crash and gives the right result I don't feel it has
to be efficient. If it was really an important case, then there should
be special cases for this. With this patch I get the following results.

My goal is to build a large sparse matrix out of an unknown number of
smaller matrices, that is why I would like it to readjust its size as
I am assigning to it. Your fix works on the first assignment, but
octave crashes on the second.

x = sparse(2,0)
x(:,1:2) = speye(2)  # crashed here before fix
x(:,3:4) = speye(2)  # now it crashes here.

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]