[ADMB Users] fill matrix with a vector

Richard Chandler richard.chandlers at gmail.com
Thu Mar 24 12:09:33 PDT 2011


Sure, that works. I was just checking to see if there was a preexisting
efficient method.

Thanks,
Richard


On Thu, Mar 24, 2011 at 2:33 PM, dave fournier <davef at otter-rsch.com> wrote:

> It is a simple matter to write a function that uses a loop to do what you
> want and then you just call
> that function.  prototypes could be
>
>    void fill(const dvar_matrix& dest,const dvar_vector& src);
>
>    void fill(const dmatrix& dest,const dvector& src);
>
>
>
> then you just use
>
>           fill(M,v);
>
>
>
> why wouldn't that do the job?
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110324/cfd2993a/attachment.html>


More information about the Users mailing list