a_double_ctor#

View page source

The 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& d

The resulting ad variable represents a constant function equal to d .

a_other#

This argument has c++ prototype

      const a_double& a_other

The resulting ad variable is the same function of the independent variables as a_other .

Example#

All of the other a_double examples use an a_double constructor.