This project has moved. For the latest updates, please go here.

Problem with Vector Append

May 4, 2012 at 10:58 PM
Edited May 4, 2012 at 11:16 PM

I am trying to append to a vector.  The code below works for a Matrix what is the equivalent for a vector?

Vector<Complex> SignalVector = new DenseVector(new Complex[]{
                                                    new Complex (1.0, 0),
                                                    new Complex (2.0, 0),
                                                    new Complex (3.0, 0)});

Matrix<Complex> SignalMatrix = new DenseMatrix(1,3,new Complex[]{
                                                new Complex (1.0, 0),
                                                new Complex (2.0, 0),
                                                new Complex (3.0, 0)});

SignalMatrix = SignalMatrix.Append(new DenseMatrix(1, 3, Complex.Zero));
SignalVector = SignalVector.???(new DenseVector(3, Complex.Zero));