coin-or / CppAD

A C++ Algorithmic Differentiation Package: Home Page
https://cppad.readthedocs.io
Other
446 stars 94 forks source link

How to convert from an AD<double> to a double ? #132

Closed abczhou123 closed 2 years ago

abczhou123 commented 2 years ago

eg: AD a=10; double b=a;//error

bradbell commented 2 years ago

see https://coin-or.github.io/CppAD/doc/value.htm

and https://coin-or.github.io/CppAD/doc/var2par.htm

abczhou123 commented 2 years ago

https://coin-or.github.io/CppAD/doc/value.htm

https://coin-or.github.io/CppAD/doc/var2par.htm

Thank you.

bradbell commented 2 years ago

I am converting this from issue 132 to a discussion