help-octave
[Top][All Lists]
Advanced

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

Re: lists and cell arrays ?


From: John W. Eaton
Subject: Re: lists and cell arrays ?
Date: Tue, 18 Nov 2003 10:59:46 -0600

On 18-Nov-2003, David Bateman <address@hidden> wrote:

| > Soon (hopefully 2.1.52) you will also be able to write
| > 
| >   c = [c1, c2];
| > 
| > to concatentate two cell arrays.
| 
| This got my interest... Does this mean that concatenation will be made 
| generic in 2.1.52, or only that cell arrays will be added to the existing
| code?

The intent is to make concatenation using [] work for all types
including user-defined types.

I plan to add horzcat- and vertcat-like routines to the octave_value
classes but still use a more efficient approach for some subset of
types to avoid unnecessary resizing when creating numeric matrices or
perhaps cell and structure arrays as well.

Perhaps we can also do better for cases when all the objects in the
concatentation list are the same type, but if not, you should still be
able to get concatenation to work piecewise with horzcat and vertcat.

jwe



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

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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