Replies: 4 comments 4 replies
-
I am not sure what you are trying to do here. Would you please provide a simple example. |
Beta Was this translation helpful? Give feedback.
-
Will you be taking derivatives with respect to one of the independent variables while the others are held constant, or are you interested in cross term derivatives with respect to all the independent variables ? |
Beta Was this translation helpful? Give feedback.
-
I suggest creating your own class that has the interface that you want where one or more ADFun objects are data in the class. One thing I would like to draw your attention to is that in CppAD there are three types of AD values; see the heading at_type on |
Beta Was this translation helpful? Give feedback.
-
Suppose you are computing the Hessian of f(u,v) w.r.t u at a certain value of (u,v) where u and v are vectors and the value of v changes. If you also need the Hessian of f(u,v)( w.r.t v at values of (u,v) perhaps two function objects would be better where the parameter and variable roles switch. If you also need the Cross partials w.r.t u and v, perhaps it is best to have both u and v variables. In any case, you could create your own AD function object that implements the interface you want and do the most efficient thing (what every that is) in your object. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! I am interested in this issue which was raised with regards to CppADCodeGen. I think it would be great if such a feature would be implemented in CppAD!
Beta Was this translation helpful? Give feedback.
All reactions