Prev Next

Speed Test 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.

Speed
To run these tests, you must include the --with-Speed command line option during the install configure command. After the Unix install make command, you can then run the function value speed tests with the following commands (relative to the distribution directory):
     speed/double/double 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/double/double 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 double speed tests are
     AM_CXXFLAGS   = -O2 -DNDEBUG $(CXX_FLAGS) -DDOUBLE
where CXX_FLAGS is specified by the configure command.

Contents
Double Speed: Determinant Using Expansion by Minors
Double Speed: Determinant Using Lu Factorization
Double Speed: Evaluate a Polynomial

Input File: omh/speed_double.omh