\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
cppadcg¶
View page sourceIncluding CppADCodeGen Examples and Tests¶
CppADCodeGen Home Page¶
Purpose¶
CppAD includes examples and test that use the CppADCodeGen package,
abbreviated as cppadcg
, see:
code_gen_fun .
include_cppadcg¶
If include_cppadcg=true
is on the cmake command line,
then the pkg-config will find the
necessary information to include cppadcg.
The value of PKG_CONFIG_PATH must be such that the command
pkg-config cppadcg --path --print-errors
finds the location of the file cppadcg.pc
.
Speed Tests¶
If include_cppadcg=true
is on the cmake command line,
you will be able to run the cppadcg speed correctness tests
by executing the following commands starting in the
Distribution Directory :
cd build/speed/cppadcg
make check_speed_cppadcg
After executing make check_speed_cppadcg
,
you can run a specific cppadcg speed test
by executing the command ./speed_cppadcg
;
see speed_main for the meaning of the command line
options to this program.
get_cppadcg¶
If you are using Unix, you can download and install
a copy of cppadcg using get_cppadcg.sh .
The corresponding install prefix is
build/prefix
.