Prev | Next | testvector |
CPPAD_TESTVECTOR(Scalar)
CPPAD_TESTVECTOR(Type)
When writing their own code,
users can choose a specific simple vector they prefer; for example,
CppAD::vector<Type>
cppad
,
# define CPPAD_TESTVECTOR(Scalar) CppAD::vector< Scalar >
CPPAD_TESTVECTOR
.
cppad_testvector
to be std
,
# define CPPAD_TESTVECTOR(Scalar) std::vector< Scalar >
CPPAD_TESTVECTOR
.
cppad_testvector
to be boost
,
# define CPPAD_TESTVECTOR(Scalar) boost::numeric::ublas::vector< Scalar >
CPPAD_TESTVECTOR
.
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_TESTVECTOR
.