Prev Next

Speed Test Derivatives Using CppAD

Purpose
CppAD has a set of speed tests that are used to determine if certain changes improve its execution speed (and to compare CppAD with other AD packages). This section links to the source code the CppAD speed tests (any suggestions to make the CppAD results faster are welcome).

Running Tests
To build these speed tests, and run their correctness tests, execute the following commands starting in the work directory :
     cd speed/cppad
     make test
You can then run the corresponding speed tests with the following command
     ./cppad speed 
seed
where seed is a positive integer. See speed_main for more options.

C++ Compiler Flags
The C++ compiler flags used to build the CppAD speed tests are
 
     AM_CXXFLAGS   = -O2 -DNDEBUG -DSPEED_CPPAD $(CXX_FLAGS)
where CXX_FLAGS is specified by the configure command.

Contents
CppAD Speed: Gradient of Determinant by Minor Expansion
CppAD Speed: Gradient of Determinant Using Lu Factorization
CppAD Speed: Matrix Multiplication
CppAD Speed: Gradient of Ode Solution
CppAD Speed: Second Derivative of a Polynomial
CppAD Speed: Sparse Hessian
CppAD Speed: Sparse Jacobian

Input File: omh/speed_cppad.omh