package octave-forge
tags 295395 upstream
forwarded 295395 octave-dev@lists.sourceforge.net
thanks
----- Forwarded message from Dennis Jørgensen <dnj@x.dtu.dk> -----
From: Dennis Jørgensen <dnj@x.dtu.dk>
Subject: octave-forge: Replacing a submatrix of a sparse matrix results in a full
matrix
Date: Tue, 15 Feb 2005 16:28:50 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
Package: octave-forge
Version: 2004.11.16-3
Severity: normal
With the following commands, I would have expected matrix A to
stay sparse:
octave:1> A = sparse(4,4);
octave:2> A([1 2 4],[1 2 4]) = sprand(3,3,0.2);
octave:3> issparse(A)
ans = 0
Same commands in Matlab:
A = sparse(4,4);
A([1 2 4],[1 2 4]) = sprand(3,3,0.2);
issparse(A)
ans =
1
Replacing sprand() with something returning a full matrix yields
the same results: sparse 'A' in Matlab, full in Octave.
Regards,
Dennis J??rgensen