[ADMB Users] Printing a vector in a row format

Weihai Liu liuweih at msu.edu
Wed Mar 7 06:14:40 PST 2012


try ofs<< column_vector( yourVector);


On Wed, Mar 7, 2012 at 3:38 AM, Naji Nassar <nassar.naji at orange.fr> wrote:

> Hi all****
>
> ** **
>
> ** **
>
> I’m looking for an elegant way in ADMB to print a vector in a column
> format, just to avoid loop****
>
>   {****
>
>     ofstream ofs("llik1.txt");****
>
>      for (t=1;t<=nobs;t+=1)****
>
>       {****
>
>         ofs << llik(t) << endl;****
>
>       }****
>
>   }****
>
> ** **
>
> ADMB DLL with MSVC.. I still don’t find a solution.. Any help is highly
> appreciated****
>
> ** **
>
> ** **
>
> Naji****
>
> _______________________________________________
> 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/20120307/a2746eb0/attachment.html>


More information about the Users mailing list