Replies: 1 comment 4 replies
-
If you look at the documentation for the Value function If you want to convert variable, or dynamic parameter to double you must first convert it to a parameter using Perhaps I should add more to the Var2Par documentation stating that dynamic parameters can also be converted. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using CppAD and I wonder if there is a specific reason why CppAD::AD doesn't implement the "cast to double" function.
A guess of what it could look like :
operator double() const { return CppAD::Value(CppAD::Var2Par(this)); }
It would simplify my developpement to have such a function.
Thanks a lot,
Cédric
Beta Was this translation helpful? Give feedback.
All reactions