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: Muthiah Annamalai
Subject: Re: C++ insert row vector into matrix?
Date: Mon, 2 Jul 2007 11:47:58 -0500


On 7/2/07, Mark B. <address@hidden> wrote:

Hello,

Where can I download these C++ libraries for using with my standalone
programs?

Thanks



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.
> _______________________________________________
>


I think the questions are w.r.t using liboctave, an integral part of
GNU Octave.

You can write your code as a 'oct' function in C++ and dynamically
load it for use, within Octave. It is not possible to use these libraries
as stand-alone, unless you want to compile a significant part of Octave
into your application.

-Muthu


reply via email to

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