|
Prev | Next |
# include <cppad/cppad.hpp>
# include <cppad/cppad.hpp>
includes the CppAD package for the rest of the current compilation unit.
CppAD or CPPAD_; see preprocessor
.
CppAD namespace; for example, you can access the AD
types as
size_t n = 2;
CppAD::vector< CppAD::AD<Base> > x(n)
You can abbreviate access to one object or function a using
command of the form
using CppAD::AD
CppAD::vector< AD<Base> > x(n)
You can abbreviate access to all CppAD objects and functions
with a command of the form
using namespace CppAD
vector< AD<Base> > x(n)
If you include other namespaces in a similar manner,
this can cause naming conflicts.
| _contents | Table of Contents |
| Install | CppAD Download, Test, and Installation Instructions |
| Introduction | An Introduction by Example to Algorithmic Differentiation |
| AD | AD Objects |
| ADFun | ADFun Objects |
| library | The CppAD General Purpose Library |
| preprocessor | Preprocessor Definitions Used by CppAD |
| Example | Examples |
| Appendix | Appendix |
| _reference | Alphabetic Listing of Cross Reference Tags |
| _index | Keyword Index |
| _search | Search This Web Site |
| _external | External Internet References |
% --------------------------------------------------------------------
% Latex macros defined here and used throughout the CppAD documentation
\newcommand{\T}{ {\rm T} }
\newcommand{\R}{ {\bf R} }
\newcommand{\C}{ {\bf C} }
\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}} }
% --------------------------------------------------------------------