Prev | Next |
available = link_name(job, size, repeat, other_arguments )
link_name
listed below.
This is used by the speed_main
program
to run the corresponding speed and correctness tests.
link_name
routines may use static memory for setup and teardown
and hence may not be thread safe.
link_name
in the syntax is one of the following:
link_det_lu | Speed Testing Gradient of Determinant Using Lu Factorization |
link_det_minor | Speed Testing Gradient of Determinant by Minor Expansion |
link_mat_mul | Speed Testing Derivative of Matrix Multiply |
link_ode | Speed Testing the Jacobian of Ode Solution |
link_poly | Speed Testing Second Derivative of a Polynomial |
link_sparse_hessian | Link to Speed Test Sparse Hessian |
link_sparse_jacobian | Speed Testing Sparse Jacobians |
bool
return value
available
is true (false)
if the speed test
name
is (is not) available for this package.
const std::string&
argument
job
has one of the following values:
size
and will not be used for timing.
It can be used to setup information that should not be included in timing
how long this routine takes.
job
was either setup
or run
and had the same value of
size
.
size
and will not be used for timing.
It should be used to take down the setup; e.g., fee any memory that
was allocated.
size_t
argument
size
this is the size parameter for this
test. Larger sizes correspond to more computation per call.
job
is run
,
the
size_t
argument
repeat
is the number of
randomly chosen argument values that the test derivatives should be
evaluated for.
The value of
repeat
is always greater than or equal one
and all the
link_name
output values are always calculated.
size
and their other arguments.