General

General Examples

Description

Most of the examples in CppAD are part of the documentation for a specific feature; for example, add.cpp is an example using the addition operator . The examples list in this section are of a more general nature.

Contents

Name

Title

ad_fun.cpp

Creating Your Own Interface to an ADFun Object

ad_in_c.cpp

Example and Test Linking CppAD to Languages Other than C++

conj_grad.cpp

Differentiate Conjugate Gradient Algorithm: Example and Test

cppad_eigen.hpp

Enable Use of Eigen Linear Algebra Package with CppAD

hes_minor_det.cpp

Gradient of Determinant Using Expansion by Minors: Example and Test

hes_lu_det.cpp

Gradient of Determinant Using LU Factorization: Example and Test

interface2c.cpp

Interfacing to C: Example and Test

jac_minor_det.cpp

Gradient of Determinant Using Expansion by Minors: Example and Test

jac_lu_det.cpp

Gradient of Determinant Using Lu Factorization: Example and Test

mul_level

Using Multiple Levels of AD

ode_stiff.cpp

A Stiff Ode: Example and Test

mul_level_ode.cpp

Taylor’s Ode Solver: A Multi-Level AD Example and Test

mul_level_adolc_ode.cpp

Taylor’s Ode Solver: A Multi-Level Adolc Example and Test

stack_machine.cpp

Example Differentiating a Stack Machine Interpreter

code_gen_fun

Generate Source Code and Compile an AD Function

code_gen_fun.hpp

code_gen_fun Class Include File

code_gen_fun.cpp

code_gen_fun Class Member Implementation