\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
cpp_fun_ctor#
View page sourceStop Current Recording and Store Function Object#
Syntax#
d_fun#
cppad_py::d_fun ( ax , ay )a_fun#
cppad_py::a_fun ( f )ax#
This argument has prototype
const vec_a_double& axand must be the same as
ax
returned by the previous call to independent ; i.e.,
it must be the independent variable vector.
We use the notation n = ax.size ()
to denote the number of independent variables.
ay#
This argument has prototype
const vec_a_double& axIt specifies the dependent variables.
We use the notation m = ay.size ()
to denote the number of dependent variables.
f#
This result has prototype
cppad_py::d_fun fIt has a representation for the floating point operations
that mapped the independent variables ax
to the dependent variables ay .
This object computes function and derivative values using double .
Empty Function#
In the case where ax and ay have size zero, the function is ‘empty’ and all its sizes are zero; see cpp_fun_property.
af#
This result has prototype
cppad_py::a_fun afIt has a representation of the same function as f .
This object computes function and derivative values using a_double .
Initially, there are not Taylor coefficient stored in af ; i.e.,
af_size_order() is zero.
Example#
All of the examples use these constructors.