\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
function_name¶
View page sourceSetting and Getting a Function’s Name¶
Syntax¶
function_name_set
( function_name )function_name_get
()See Also¶
f¶
In the set operation, f has prototype
ADFun
< Base > f
In the get operation, f has prototype
const ADFun
< Base > f
(see ADFun
< Base > constructor ).
function_name¶
is the name of the function. In the set operation, function_name has prototype
const std::string&
function_name
In the get operation, function_name has prototype
std::string
function_name
Example¶
The file function_name.cpp contains an example and test of these operations.