\(\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}} }\)
cppad_testvector¶
View page sourceChoosing the CppAD Test Vector Template Class¶
Syntax¶
CPPAD_TESTVECTOR
( Scalar ) vecExample Simple Vector¶
The value cppad_testvector
in the CMake Command must be one of the
following:
boost
, cppad
, eigen
, or std
.
It specifies which SimpleVector
corresponds to the template class
CPPAD_TESTVECTOR
which is used for many of the CppAD examples and tests.
std¶
If cppad_testvector is std ,
the std::vector
template class is used to define
CPPAD_TESTVECTOR
.
cppad¶
If cppad_testvector is cppad ,
the CppAD_vector template class is used to define
CPPAD_TESTVECTOR
.
boost¶
If cppad_testvector is boost ,
boost ublas vector
template class is used to define
CPPAD_TESTVECTOR
.
In this case, the
cmake FindBoost
module must be able to automatically figure out where Boost is installed.
eigen¶
If cppad_testvector is eigen ,
one of the eigen template classes is used to define
CPPAD_TESTVECTOR
.
In this case,
Eigen must be found and c++14 must be supported.