Bug#394982: [Pkg-octave-devel] Bug#394982: octave2.9: Crashes on "x(:,
Rafael Laboissiere
rafael at debian.org
Wed Oct 25 14:35:15 CEST 2006
package octave2.9
reopen 394982
thanks
* Kim Hansen <kimhanse at gmail.com> [2006-10-25 13:20]:
> On 10/25/06, David Bateman <adb014 at gmail.com> 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.
I confirm the problem in octave2.9_2.9.9-4. I am hereby reopening the bug
report.
--
Rafael
More information about the Pkg-octave-devel
mailing list