<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='pmathml.xsl'?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>ADFun Object Deprecated Member Functions</title>
<meta name="description" id="description" content="ADFun Object Deprecated Member Functions"/>
<meta name="keywords" id="keywords" content=" Adfun Dependent Order Memory Size taylor_size use_vecad "/>
<style type='text/css'>
body { color : black }
body { background-color : white }
A:link { color : blue }
A:visited { color : purple }
A:active { color : purple }
</style>
<script type='text/javascript' language='JavaScript' src='_fundeprecated_xml.js'>
</script>
</head>
<body>
<table><tr>
<td>
<a href="http://www.coin-or.org/CppAD/" target="_top"><img border="0" src="_image.gif"/></a>
</td>
<td><a href="include_deprecated.xml" target="_top">Prev</a>
</td><td><a href="omp_max_thread.xml" target="_top">Next</a>
</td><td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</option>
<option>contents</option>
<option>reference</option>
<option>index</option>
<option>search</option>
<option>external</option>
</select>
</td>
<td>
<select onchange='choose_up0(this)'>
<option>Up-&gt;</option>
<option>CppAD</option>
<option>Appendix</option>
<option>deprecated</option>
<option>FunDeprecated</option>
</select>
</td>
<td>
<select onchange='choose_down3(this)'>
<option>CppAD-&gt;</option>
<option>Install</option>
<option>Introduction</option>
<option>AD</option>
<option>ADFun</option>
<option>multi_thread</option>
<option>library</option>
<option>cppad_ipopt_nlp</option>
<option>Example</option>
<option>preprocessor</option>
<option>Appendix</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>Appendix-&gt;</option>
<option>Faq</option>
<option>speed</option>
<option>Theory</option>
<option>glossary</option>
<option>Bib</option>
<option>Bugs</option>
<option>WishList</option>
<option>whats_new</option>
<option>deprecated</option>
<option>License</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>deprecated-&gt;</option>
<option>include_deprecated</option>
<option>FunDeprecated</option>
<option>omp_max_thread</option>
<option>TrackNewDel</option>
<option>omp_alloc</option>
</select>
</td>
<td>FunDeprecated</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Syntax</option>
<option>Purpose</option>
<option>Dependent</option>
<option>---..Deprecated</option>
<option>Order</option>
<option>---..Deprecated</option>
<option>Memory</option>
<option>---..Deprecated</option>
<option>Size</option>
<option>---..Deprecated</option>
<option>taylor_size</option>
<option>---..Deprecated</option>
<option>use_VecAD</option>
<option>---..Deprecated</option>
</select>
</td>
</tr></table><br/>
<center><b><big><big>ADFun Object Deprecated Member Functions</big></big></b></center>
<br/>
<b><big><a name="Syntax" id="Syntax">Syntax</a></big></b>

<br/>

<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Dependent(</span></font><i><font color="black"><span style='white-space: nowrap'>y</span></font></i><font color="blue"><span style='white-space: nowrap'>)<br/>
</span></font></code>

<code><i><font color="black"><span style='white-space: nowrap'>o</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Order()<br/>
</span></font></code>

<code><i><font color="black"><span style='white-space: nowrap'>m</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Memory()<br/>
</span></font></code>

<code><i><font color="black"><span style='white-space: nowrap'>s</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Size()<br/>
</span></font></code>

<code><i><font color="black"><span style='white-space: nowrap'>t</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.taylor_size()<br/>
</span></font></code>

<code><i><font color="black"><span style='white-space: nowrap'>u</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.use_VecAD()<br/>
</span></font></code>
<br/>
<b><big><a name="Purpose" id="Purpose">Purpose</a></big></b>
<br/>
The 
<code><font color="blue"><span style='white-space: nowrap'>ADFun&lt;</span></font><i><font color="black"><span style='white-space: nowrap'>Base</span></font></i><font color="blue"><span style='white-space: nowrap'>&gt;</span></font></code>
 functions documented here have been deprecated;
i.e., they are no longer approved of and may be removed from some future
version of CppAD.

<br/>
<br/>
<b><big><a name="Dependent" id="Dependent">Dependent</a></big></b>


<br/>
A recording of and AD of 
<code><i><font color="black"><span style='white-space: nowrap'>Base</span></font></i></code>

<a href="glossary.xml#Operation.Sequence" target="_top"><span style='white-space: nowrap'>operation&#xA0;sequence</span></a>

is started by a call of the form

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;Independent(</span></font><i><font color="black"><span style='white-space: nowrap'>x</span></font></i><font color="blue"><span style='white-space: nowrap'>)<br/>
</span></font></code>
If there is only one such recording at the current time,
you can use 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Dependent(</span></font><i><font color="black"><span style='white-space: nowrap'>y</span></font></i><font color="blue"><span style='white-space: nowrap'>)</span></font></code>
 in place of

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.Dependent(</span></font><i><font color="black"><span style='white-space: nowrap'>x</span></font></i><font color="blue"><span style='white-space: nowrap'>,&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>y</span></font></i><font color="blue"><span style='white-space: nowrap'>)<br/>
</span></font></code>
See <a href="dependent.xml" target="_top"><span style='white-space: nowrap'>Dependent</span></a>
 for a description of this operation.

<br/>
<br/>
<b><a name="Dependent.Deprecated" id="Dependent.Deprecated">Deprecated</a></b>
<br/>
This syntax was deprecated when CppAD was extended to allow
for more than one 
<code><font color="blue"><span style='white-space: nowrap'>AD&lt;</span></font><i><font color="black"><span style='white-space: nowrap'>Base</span></font></i><font color="blue"><span style='white-space: nowrap'>&gt;</span></font></code>
 recording to be
active at one time. 
This was necessary to allow for multiple threading applications.

<br/>
<br/>
<b><big><a name="Order" id="Order">Order</a></big></b>


<br/>
The result 
<code><i><font color="black"><span style='white-space: nowrap'>o</span></font></i></code>
 has prototype 

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;size_t&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>o</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
and is the order of the previous forward operation
using the function 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
.
This is the highest order of the 
<a href="glossary.xml#Taylor Coefficient" target="_top"><span style='white-space: nowrap'>Taylor&#xA0;coefficients</span></a>

that are currently stored in 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
.

<br/>
<br/>
<b><a name="Order.Deprecated" id="Order.Deprecated">Deprecated</a></b>
<br/>
Zero order corresponds to function values being stored in 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
.
In the future, we would like to be able to erase the function
values so that 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
 uses less memory. 
In this case, the return value of <code><font color="blue">Order</font></code> would not make sense.
Use <a href="size_taylor.xml" target="_top"><span style='white-space: nowrap'>size_taylor</span></a>
 to obtain 
the number of Taylor coefficients currently stored
in the ADFun object 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
 
(which is equal to the order plus one).


<br/>
<br/>
<b><big><a name="Memory" id="Memory">Memory</a></big></b>


<br/>
The result 

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;size_t&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>m</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
and is the number of memory units (<code><font color="blue">sizeof</font></code>) required for the
information currently stored in 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
.
This memory is returned to the system when the destructor for 

<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
 is called.

<br/>
<br/>
<b><a name="Memory.Deprecated" id="Memory.Deprecated">Deprecated</a></b>
<br/>
It used to be the case that an ADFun object just kept increasing its
buffers to the maximum size necessary during its lifetime.
It would then return the buffers to the system when its destructor
was called.
This is no longer the case, an ADFun object now returns memory
when it no longer needs the values stored in that memory.
Thus the <code><font color="blue">Memory</font></code> function is no longer well defined.

<br/>
<br/>
<b><big><a name="Size" id="Size">Size</a></big></b>


<br/>
The result 
<code><i><font color="black"><span style='white-space: nowrap'>s</span></font></i></code>
 has prototype

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;size_t&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>s</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
and is the number of variables in the operation sequence plus the following:
one for a phantom variable with tape address zero,
one for each component of the domain that is a parameter.
The amount of work and memory necessary for computing function values
and derivatives using 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
 is roughly proportional to <i>s</i>.

<br/>
<br/>
<b><a name="Size.Deprecated" id="Size.Deprecated">Deprecated</a></b>
<br/>
There are other sizes attached to an ADFun object, for example,
the number of operations in the sequence.
In order to avoid confusion with these other sizes,
use <a href="seq_property.xml#size_var" target="_top"><span style='white-space: nowrap'>size_var</span></a>
 to obtain 
the number of variables in the operation sequence.

<br/>
<br/>
<b><big><a name="taylor_size" id="taylor_size">taylor_size</a></big></b>


<br/>
The result 
<code><i><font color="black"><span style='white-space: nowrap'>t</span></font></i></code>
 has prototype

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;size_t&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>t</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
and is the number of Taylor coefficients, 
per variable in the AD operation sequence,
currently calculated and stored in the ADFun object 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
.

<br/>
<br/>
<b><a name="taylor_size.Deprecated" id="taylor_size.Deprecated">Deprecated</a></b>
<br/>
For the purpose of uniform naming,
this function has been replaced by <a href="size_taylor.xml" target="_top"><span style='white-space: nowrap'>size_taylor</span></a>
.

<br/>
<br/>
<b><big><a name="use_VecAD" id="use_VecAD">use_VecAD</a></big></b>


<br/>
The result 
<code><i><font color="black"><span style='white-space: nowrap'>u</span></font></i></code>
 has prototype

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;bool&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>u</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
If it is true, the
AD of 
<code><i><font color="black"><span style='white-space: nowrap'>Base</span></font></i></code>

<a href="glossary.xml#Operation.Sequence" target="_top"><span style='white-space: nowrap'>operation&#xA0;sequence</span></a>

stored in 
<code><i><font color="black"><span style='white-space: nowrap'>f</span></font></i></code>
 contains 
<a href="vecad.xml#VecAD&lt;Base&gt;::reference" target="_top"><span style='white-space: nowrap'>VecAD</span></a>
 operands.
Otherwise 
<code><i><font color="black"><span style='white-space: nowrap'>u</span></font></i></code>
 is false.

<br/>
<br/>
<b><a name="use_VecAD.Deprecated" id="use_VecAD.Deprecated">Deprecated</a></b>
<br/>
You can instead use

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>u</span></font></i><font color="blue"><span style='white-space: nowrap'>&#xA0;=&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>f</span></font></i><font color="blue"><span style='white-space: nowrap'>.size_VecAD()&#xA0;&gt;&#xA0;0<br/>
</span></font></code>

<hr/>Input File: omh/fun_deprecated.omh

</body>
</html>

