[ADOL-C] array of parameters

hg hgbk2008 at gmail.com
Thu Sep 6 05:55:16 EDT 2018


I found the solution:
std::vector<adouble> aparams(n);
aparams[0] = mkparam(e);
aparams[1] = mkparam(nu);
.........

Thank you
Giang


On Thu, Sep 6, 2018 at 11:34 AM hg <hgbk2008 at gmail.com> wrote:

> Hello
>
> I would like to create an array of parameters to pass in the argument of a
> function. When I declared:
>
> std::vector<pdouble> aparams;
>
> The compiler stops because pdouble has a protected constructor. Is there
> any idea to get over this problem?
>
> Best regards
> Giang
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20180906/9cb88e8c/attachment.html>


More information about the ADOL-C mailing list