cppad
  • Table of Contents
  • user_guide
    • Install
    • Theory
    • AD
    • ADFun
    • preprocessor
    • multi_thread
    • utility
    • ipopt_solve
    • Example
      • get_started.cpp
      • list_all_examples
      • General
        • ad_fun.cpp
        • ad_in_c.cpp
        • conj_grad.cpp
        • cppad_eigen.hpp
        • hes_minor_det.cpp
        • hes_lu_det.cpp
        • interface2c.cpp
        • jac_minor_det.cpp
        • jac_lu_det.cpp
        • mul_level
        • ode_stiff.cpp
        • mul_level_ode.cpp
        • mul_level_adolc_ode.cpp
        • stack_machine.cpp
        • code_gen_fun
        • code_gen_fun.hpp
        • code_gen_fun.cpp
      • example_utility
      • testvector
      • wno_conversion
    • speed
  • appendix
  • Index
  • Search
cppad
  • »
  • user_guide »
  • Example »
  • General
  • View page source

\(\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}} }\)

General¶

General Examples¶

  • Description

  • Contents

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

Next Previous

© Copyright .

Built with Sphinx using a theme provided by Read the Docs.