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 . After the Unix install make command, you can then run the Fadbad speed tests with the following commands (relative to the distribution directory):
     speed/fadbad/fadbad correct 
seed
where seed is a positive integer see for the random number generator uniform_01 . This will check that the speed tests have been built correctly. You can run the command
     speed/fadbad/fadbad speed 
seed
to see the results of all the speed tests. See speed_main for more options.

C++ Compiler Flags
The C++ compiler flags used to build the Fadbad speed tests are
     # Note that Fadbad will not compile with the -pedantic-errors flag,
     # so we are leaving CXX_FLAGS out of this complilation.
     AM_CXXFLAGS   = -O2 -DNDEBUG -Wno-deprecated -DFADBAD

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

Input File: omh/speed_fadbad.omh