help-octave
[Top][All Lists]
Advanced

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

Re: C++ insert row vector into matrix?


From: Michael Creel
Subject: Re: C++ insert row vector into matrix?
Date: Fri, 29 Jun 2007 11:09:02 +0200
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

Actually, it is correct. I was getting an error for other reasons. M.

Michael Creel wrote:
The Octave wiki CPP quick reference (http://wiki.octave.org/wiki.pl?CPPQuickReference) shows how to stack matrices. How can I insert a row vector into an existing matrix of zeros, to avoid constantly re-sizing? Or is re-sizing a low cost operation?

I'm trying this:
                W.insert(zzz, i, 0);
where W is a matrix and zzz is a row vector. This compiles, but is not correct.
Thanks, M.
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

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