\(\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}} }\)
fadbad_prefix¶
View page sourceIncluding Fadbad Speed Tests¶
Fadbad Home Page¶
Purpose¶
CppAD includes speed comparisons for the Fadbad AD package; see speed_fadbad .
fadbad_prefix¶
If Fadbad is installed on your system, you can specify a value for its install fadbad_prefix on the cmake command line. The value of fadbad_prefix must be such that, for one of the directories dir in cmake_install_includedirs ,
fadbad_prefix / dir /
FADBAD
++/badiff.h
is a valid way to reference to the include file badiff.h
;
Speed Tests¶
If you include fadbad_prefix on the cmake command line, you will be able to run the Fadbad speed correctness tests by executing the following commands starting in the Distribution Directory :
cd build/speed/fadbad
make check_speed_fadbad
After executing make check_speed_fadbad
,
you can run a specific Fadbad speed test
by executing the command ./speed_fadbad
;
see speed_main for the meaning of the command line
options to this program.
get_fadbad¶
If you are using Unix, you can download and install
a copy of Fadbad using get_fadbad.sh .
The corresponding fadbad_prefix would be
build/prefix
.