cppad_testvector

View page source

Choosing the CppAD Test Vector Template Class

Syntax

CPPAD_TESTVECTOR ( Scalar ) vec

Example 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, include_eigen must be specified on the cmake command line.