Prev Next

Speed Test of Derivatives Using Adolc

Purpose
CppAD has a set of speed tests that are used to compare Adolc with other AD packages. This section links to the source code the Adolc speed tests (any suggestions to make the Adolc results faster are welcome).

AdolcDir
To run these tests, you must include the configure command line option
     ADOLC_DIR=
AdolcDir
during installation .

Running Tests
To build these speed tests, and run their correctness tests, execute the following commands starting in the work directory :
     cd speed/adolc
     make test
You can then run the corresponding speed tests with the following command
     ./adolc 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 Adolc speed tests are
 
     AM_CXXFLAGS   = -O2 -DNDEBUG -DSPEED_ADOLC $(CXX_FLAGS)
where CXX_FLAGS is specified by the configure command.

Contents
Adolc Speed: Gradient of Determinant by Minor Expansion
Adolc Speed: Gradient of Determinant Using Lu Factorization
Adolc Speed: Matrix Multiplication
Adolc Speed: Ode
Adolc Speed: Second Derivative of a Polynomial
Adolc Speed: Sparse Hessian
adolc Speed: sparse_jacobian

Input File: omh/speed_adolc.omh