Choice
The user can choose, during the install procedure,
which template class to use in the examples and tests; see below.
This shows that any
simple vector
class can be used in place of
CPPAD_TESTVECTOR(Type)
When writing their own code,
users can choose a specific simple vector they prefer; for example,
CppAD::vector<Type>
boost::numeric::ublas::vector
If in the cmake command
you specify
cppad_testvector
to be boost,
# define CPPAD_TESTVECTOR(Scalar) boost::numeric::ublas::vector< Scalar >
CppAD::eigen_vector
If in the cmake command
you specify
cppad_testvector
to be eigen,
# define CPPAD_TESTVECTOR(Scalar) CppAD::eigen_vector< Scalar >
see eigen_vector
.
In this case CppAD will use the Eigen vector
for many of its examples and tests.
CPPAD_EIGENVECTOR, Deprecated 2022-06-22
This symbol is 1 (0) if the definition above
is used (is not used) for CPPAD_TESTVECTOR.
Input File: include/cppad/core/testvector.hpp