testvector

View page source

Using The CppAD Test Vector Template Class

Syntax

CPPAD_TESTVECTOR ( Scalar )

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 >

CppAD::vector

If in the CMake Command you specify cppad_testvector to be cppad ,

# define CPPAD_TESTVECTOR ( Scalar ) CppAD::vector< Scalar >

CPPAD_CPPADVECTOR, Deprecated 2022-06-22

This symbol is 1 (0) if the definition above is used (is not used) for CPPAD_TESTVECTOR .

std::vector

If in the cmake command you specify cppad_testvector to be std ,

# define CPPAD_TESTVECTOR ( Scalar ) std::vector< Scalar >

CPPAD_STDVECTOR, Deprecated 2022-06-22

This symbol is 1 (0) if the definition above is used (is not used) for CPPAD_TESTVECTOR .

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_BOOSTVECTOR, Deprecated 2022-06-22

This symbol is 1 (0) if the definition above is used (is not used) for CPPAD_TESTVECTOR .

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 .