Prev Next

Speed Test Derivatives Using Fadbad

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

FadbadDir
To run these tests, you must include the configure command line option
     FADBAD_DIR=
FadbadDir
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/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 Fadbad speed tests are
 
     # Use special version of CXX_FLAGS with -Wshadow removed (if present).
     AM_CXXFLAGS   = -O2 -DNDEBUG -DSPEED_FADBAD $(CXX_FLAGS_FADBAD)


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

Input File: omh/speed_fadbad.omh