<?xml version='1.0'?>
<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:math='http://www.w3.org/1998/Math/MathML'
>
<head>
<title>Choosing the CppAD Test Vector Template Class</title>
<meta name="description" id="description" content="Choosing the CppAD Test Vector Template Class"/>
<meta name="keywords" id="keywords" content=" cppad test vector cppad_testvector boost eigen "/>
<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='_cppad_testvector_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="get_sacado.sh.xml" target="_top">Prev</a>
</td><td><a href="cmake_check.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>Install</option>
<option>cmake</option>
<option>cppad_testvector</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>preprocessor</option>
<option>multi_thread</option>
<option>library</option>
<option>ipopt_solve</option>
<option>Example</option>
<option>speed</option>
<option>Appendix</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>Install-&gt;</option>
<option>download</option>
<option>cmake</option>
<option>cmake_check</option>
<option>pkgconfig</option>
<option>InstallUnix</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>cmake-&gt;</option>
<option>adolc_prefix</option>
<option>colpack_prefix</option>
<option>eigen_prefix</option>
<option>fadbad_prefix</option>
<option>ipopt_prefix</option>
<option>sacado_prefix</option>
<option>cppad_testvector</option>
</select>
</td>
<td>cppad_testvector</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Purpose</option>
<option>cppad_testvector</option>
<option>boost</option>
<option>eigen</option>
</select>
</td>
</tr></table><br/>



<center><b><big><big>Choosing the CppAD Test Vector Template Class</big></big></b></center>
<br/>
<b><big><a name="Purpose" id="Purpose">Purpose</a></big></b>
<br/>
The <a href="testvector.xml" target="_top"><span style='white-space: nowrap'>CPPAD_TESTVECTOR</span></a>
 
template class is used for many of the CppAD examples and tests.
If you are going to use 
<code><font color="blue">boost</font></code>, <code><font color="blue">cppad</font></code>, <code><font color="blue">eigen</font></code>, or <code><font color="blue">std</font></code> vectors
in your CppAD code, you many want to test CppAD with the
type of vectors you will be using.

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

<br/>
The must be one of the following choices:
<code><font color="blue">boost</font></code>, <code><font color="blue">cppad</font></code>, <code><font color="blue">eigen</font></code> or <code><font color="blue">std</font></code>.
It specifies which type of vectors are used for the
<code><font color="blue">CPPAD_TESTVECTOR</font></code> template class.
The default value for <code><font color="blue">cppad_testvector</font></code> is <code><font color="blue">cppad</font></code>.

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


<br/>
If 
<code><i><font color="black"><span style='white-space: nowrap'>cppad_testvector</span></font></i></code>
 is set to <code><font color="blue">boost</font></code>, the 
<a href="http://www.boost.org/doc/libs/1_52_0/libs/numeric/ublas/doc/vector.htm" target="_top"><span style='white-space: nowrap'>boost&#xA0;ublas&#xA0;vector</span></a>

include files must be installed on your system.
In addition, 
<a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#module:FindBoost" target="_top"><span style='white-space: nowrap'>cmake&#xA0;FindBoost</span></a>

module must be able to automatically figure out where Boost is installed.

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


<br/>
If 
<code><i><font color="black"><span style='white-space: nowrap'>cppad_testvector</span></font></i></code>
 is set to <code><font color="blue">eigen</font></code>, 
<a href="eigen_prefix.xml" target="_top"><span style='white-space: nowrap'>eigen_prefix</span></a>
 must be specified on the <code><font color="blue">cmake</font></code> command line. 



<hr/>Input File: omh/install/testvector.omh

</body>
</html>
