[ADMB Users] df1b2variable operator - ( ) not for double value

dave fournier davef at otter-rsch.com
Sat Jul 16 08:34:01 PDT 2011


On 11-07-15 07:26 PM, Weihai Liu wrote:


Something like this.

> Hi Dave,
> There is a whole file df1b2sumc.cpp defined only for operator+(double, 
> df1b2variable). Unless we came up another similar file for 
> operator-(), ow there will be some overhead because I rely on the 
> above operator+() when I defined operator-(). How high the overhead 
> will be I don't know. I just put that two lines in the globals_section 
> and have the model running fine.
>
> weihai
>
> On Fri, Jul 15, 2011 at 8:55 PM, dave fournier <davef at otter-rsch.com 
> <mailto:davef at otter-rsch.com>> wrote:
>
>     That is a painfully horribly inefficient way to accomplish what
>     you want.
>     _______________________________________________
>     Users mailing list
>     Users at admb-project.org <mailto:Users at admb-project.org>
>     http://lists.admb-project.org/mailman/listinfo/users
>
>
>
>
> -- 
> Weihai Liu
> ~~~~~~~~~~~~~~~~~~~~~~~~

> Quantitative Fisheries CenterDepartment of Fisheries & Wildlife
> Michigan State University
> 153 Giltner Hall
> East Lansing, MI 48824
> Phone: 517-355-0126
> Email: liuweih at msu.edu <mailto:liuweih at msu.edu>
> ~~~~~~~~~~~~~~~~~~~~~~

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110716/11e7f078/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: df1b2min2.cpp
Type: text/x-c++src
Size: 5742 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110716/11e7f078/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: df1b2min3.cpp
Type: text/x-c++src
Size: 5816 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110716/11e7f078/attachment-0001.cpp>


More information about the Users mailing list