Prev Next

Speed Test of Functions in Double

Purpose
CppAD has a set of speed tests for just calculating functions (in double precision instead of an AD type). This section links to the source code the function value speed tests.

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

Contents
Double Speed: Determinant by Minor Expansion
Double Speed: Determinant Using Lu Factorization
CppAD Speed: Matrix Multiplication (Double Version)
Double Speed: Ode Solution
Double Speed: Evaluate a Polynomial
Double Speed: Sparse Hessian
Double Speed: Sparse Jacobian

Input File: omh/speed_double.omh