[ADMB Users] imatrix::operator =

dave fournier otter at otter-rsch.com
Thu Dec 8 14:15:55 PST 2011


It is often userful to be able to write code like

    imatrix M;

    if ( .....)
    {
       M=B;
    }
    else
    {
        M=A;
     }


This works for a dmatrix, but the assign operator is not set up for this 
for an imatrix.

I modified it and attached the modified code.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: imat5.cpp
Type: text/x-c++src
Size: 1540 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20111208/a655500b/attachment.cpp>


More information about the Users mailing list