|
Prev | Next |
speed/package/package test seed option_list
package
.
package
specifies one of the following AD packages:
adolc
,
cppad
,
fadbad
,
sacado
.
package
can be double in which case
the function values (instead of derivatives) are computed
using double precision operations.
This enables one to compare the speed of computing function
values in double to the speed of the derivative computations.
(It is often useful to divide the speed of the derivative computation by
the speed of the function evaluation in double.)
package
is profile,
the CppAD package is compiled and run with profiling to aid in determining
where it is spending most of its time.
test
specifies which test to run
and has the following possible values:
correct
,
speed
,
det_minor
,
det_lu
,
ode
,
poly
,
sparse_hessian
,
sparse_jacobian
.
test
is equal to correct,
all of the correctness tests are run.
test
is equal to speed,
all of the speed tests are run.
seed
is a positive integer.
The random number simulator uniform_01
is initialized with
the call
uniform_01(seed)
before any of the testing routines (listed above) are called.
seed
value.
The order of the options does not matter and the list can be empty.
Each option in the list, must be separate
command line argument to the main program.
retape is present, the symbol
extern bool global_retape
is true and otherwise it is false.
If this external symbol is true,
every test must retape the AD operation sequence for each test repetition.
If it is false,
and the particular test has a fixed operation sequence,
the AD package is allowed to use one taping of the operation
sequence for all the repetitions of that speed test.
The following tests have a fixed operation sequence:
det_minor, ode, poly.
extern bool global_optimize
is true and otherwise it is false.
If this external symbol is true,
and the AD package has an optional way to spend time optimizing
the operation sequence,
this optimization should be done before doing computations.
If it is false,
this optimization should not be done.
| link_det_lu | Speed Testing Gradient of Determinant Using Lu Factorization |
| link_det_minor | Speed Testing Gradient of Determinant by Minor Expansion |
| link_ode | Speed Testing the Jacobian of Ode Solution |
| link_poly | Speed Testing Second Derivative of a Polynomial |
| link_sparse_hessian | Speed Testing Sparse Hessian |
| link_sparse_jacobian | Speed Testing Sparse Jacobian |