[Top][All Lists]

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

Re: concatenating sparse arrays

From: David Bateman
Subject: Re: concatenating sparse arrays
Date: Sat, 15 May 2004 14:13:34 +0200
User-agent: Mutt/1.4.1i

Its a bug in the sparse type and a missing feature in octave itself.

Its a bug in the sparse type due to the fact that the sparse type
doesn't implement an array_value function, that returns the dense
Nd array corresponding to the sparse matrix. If it did then your
[a;b] would return the corresponding dense version of the two
matrices concatenated.

Since there is no way within octave at the moment to have external
type (as sparse is) implement their own concatenation operator [],
its also a missing feature of octave. There has been some talk about
this being implemented soon however.

For now look at the functions sphcat and spvcat that implement
concatenation of sparse matrices...


David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax) 
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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