\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
a_double_ctor#
View page sourceThe a_double Constructor#
Syntax#
C++#
cppad_py::a_double ad ()cppad_py::a_double ad ( d )cppad_py::a_double ad ( a_other )Python#
ad =
cppad_py.a_double ()ad =
cppad_py.a_double ( d )ad =
cppad_py.a_double ( a_other )Purpose#
Creates a cppad_py::a_double object that can be use
to track floating point operations and perform algorithmic differentiation.
d#
This argument has c++ prototype
const double& dThe resulting ad variable represents a constant function equal to d .
a_other#
This argument has c++ prototype
const a_double& a_otherThe resulting ad variable is the same function of the independent variables as a_other .
ad#
is the a_double object that is constructed.
Example#
All of the other a_double examples use an a_double
constructor.