[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Appending to a ColumnVector
From: |
John W. Eaton |
Subject: |
Re: Appending to a ColumnVector |
Date: |
Wed, 25 May 2005 18:40:04 -0400 |
On 25-May-2005, Søren Hauberg wrote:
| Michael Creel wrote:
| [snip]
| > From
| >
http://pareto.uab.es/mcreel/OctaveClassReference/html/classColumnVector.html
| > there is the entry
| > ColumnVector ColumnVector::stack ( const ColumnVector & a )
const
| > which looks like it might help. I don't see any resize_and_fill operation
| > anywhere - does this work with more or less current versions of Octave?
| > M.
| I'm assuming that stack concatenates two ColumnVectors, which seems a
| bit overkill since I simply want to append one value. The function
| resize_and_fill is part of the Array class, so ColumnVector inherits
| this operation.
There should probably also be functions like
ColumnVector ColumnVector::append (double val) const;
ColumnVector& ColumnVector::append (double val);
Likewise for RowVector. P
erhaps also a prepend function.
Would you like to provide a patch?
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
-------------------------------------------------------------