list_all_examples

View page source

List All (Except Deprecated) CppAD Examples

a11c_bthread.cpp

A Simple Boost Thread Example and Test

a11c_openmp.cpp

A Simple OpenMP Example and Test

a11c_pthread.cpp

A Simple Parallel Pthread Example and Test

abort_recording.cpp

Abort Current Recording: Example and Test

abs_eval.cpp

abs_eval: Example and Test

abs_eval.hpp

abs_eval Source Code

abs_get_started.cpp

abs_normal Getting Started: Example and Test

abs_min_linear.cpp

abs_min_linear: Example and Test

abs_min_linear.hpp

abs_min_linear Source Code

abs_min_quad.cpp

abs_min_quad: Example and Test

abs_min_quad.hpp

abs_min_quad Source Code

acos.cpp

The AD acos Function: Example and Test

acosh.cpp

The AD acosh Function: Example and Test

ad_assign.cpp

AD Assignment: Example and Test

ad_ctor.cpp

AD Constructors: Example and Test

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++

ad_input.cpp

AD Output Operator: Example and Test

ad_output.cpp

AD Output Operator: Example and Test

add.cpp

AD Binary Addition: Example and Test

add_eq.cpp

AD Compound Assignment Addition: Example and Test

asin.cpp

The AD asin Function: Example and Test

asinh.cpp

The AD asinh Function: Example and Test

atan.cpp

The AD atan Function: Example and Test

atan2.cpp

The AD atan2 Function: Example and Test

atanh.cpp

The AD atanh Function: Example and Test

atomic_four_dynamic.cpp

Atomic Functions with Dynamic Parameters: Example and Test

atomic_four_forward.cpp

Atomic Functions and Forward Mode: Example and Test

atomic_four_get_started.cpp

Getting Started with Atomic Functions: Example and Test

atomic_four_lin_ode_forward.cpp

Atomic Linear ODE Forward Mode: Example and Test

atomic_four_lin_ode_rev_depend.cpp

Atomic Linear ODE Reverse Dependency Analysis: Example and Test

atomic_four_lin_ode_reverse.cpp

Atomic Linear ODE Reverse Mode: Example and Test

atomic_four_lin_ode_sparsity.cpp

Atomic Linear ODE Sparsity Calculations: Example and Test

atomic_four_mat_mul_forward.cpp

Atomic Matrix Multiply Forward Mode: Example and Test

atomic_four_mat_mul_identical_zero.cpp

Atomic Matrix Multiply Identical Zero: Example and Test

atomic_four_mat_mul_rev_depend.cpp

Atomic Matrix Multiply Reverse Dependency: Example and Test

atomic_four_mat_mul_reverse.cpp

Atomic Matrix Multiply Reverse Mode: Example and Test

atomic_four_mat_mul_sparsity.cpp

Atomic Matrix Multiply Sparsity Patterns: Example and Test

atomic_four_norm_sq.cpp

Atomic Euclidean Norm Squared: Example and Test

atomic_four_vector.hpp

Atomic Vector Class: Example Implementation

atomic_four_vector_add.cpp

Atomic Vector Addition Example

atomic_four_vector_add_op.hpp

Atomic Vector Add Operator: Example Implementation

atomic_four_vector_div.cpp

Atomic Vector Division Example

atomic_four_vector_div_op.hpp

Atomic Vector Divide Operator: Example Implementation

atomic_four_vector_for_type.hpp

Atomic Vector Forward Type Calculation: Example Implementation

atomic_four_vector_forward_op.hpp

Atomic Vector Forward Mode: Example Implementation

atomic_four_vector_hes_sparsity.cpp

Atomic Vector Sparsity Patterns Example

atomic_four_vector_hes_sparsity.hpp

Atomic Vector Hessian Sparsity Pattern: Example Implementation

atomic_four_vector_jac_sparsity.cpp

Atomic Vector Sparsity Patterns Example

atomic_four_vector_jac_sparsity.hpp

Atomic Vector Jacobian Sparsity Pattern: Example Implementation

atomic_four_vector_mul.cpp

Atomic Vector Multiplication Example

atomic_four_vector_mul_op.hpp

Atomic Vector Multiply Operator: Example Implementation

atomic_four_vector_neg.cpp

Atomic Vector Negation Example

atomic_four_vector_neg_op.hpp

Atomic Vector Negative Operator: Example Implementation

atomic_four_vector_rev_depend.cpp

Example Optimizing Atomic Vector Usage

atomic_four_vector_rev_depend.hpp

Atomic Vector Forward Type Calculation: Example Implementation

atomic_four_vector_reverse_op.hpp

Atomic Vector Forward Mode: Example Implementation

atomic_four_vector_sub.cpp

Atomic Vector Subtraction Example

atomic_four_vector_sub_op.hpp

Atomic Vector Subtract Operator: Example Implementation

atomic_three_base2ad.cpp

base2ad with Atomic Operations: Example and Test

atomic_three_dynamic.cpp

Atomic Functions with Dynamic Parameters: Example and Test

atomic_three_forward.cpp

Atomic Functions and Forward Mode: Example and Test

atomic_three_get_started.cpp

Getting Started with Atomic Functions: Example and Test

atomic_three_hes_sparsity.cpp

Atomic Forward Hessian Sparsity: Example and Test

atomic_three_jac_sparsity.cpp

Atomic Function Jacobian Sparsity: Example and Test

atomic_three_mat_mul.cpp

User Atomic Matrix Multiply: Example and Test

atomic_three_mat_mul.hpp

Matrix Multiply as an Atomic Operation

atomic_three_norm_sq.cpp

Atomic Euclidean Norm Squared: Example and Test

atomic_three_reciprocal.cpp

Reciprocal as an Atomic Operation: Example and Test

atomic_three_rev_depend.cpp

Atomic Functions Reverse Dependency Analysis: Example and Test

atomic_three_reverse.cpp

Atomic Functions and Reverse Mode: Example and Test

atomic_three_tangent.cpp

Tan and Tanh as User Atomic Operations: Example and Test

atomic_two_eigen_cholesky.cpp

Atomic Eigen Cholesky Factorization: Example and Test

atomic_two_eigen_cholesky.hpp

atomic_two Eigen Cholesky Factorization Class

atomic_two_eigen_mat_inv.cpp

Atomic Eigen Matrix Inverse: Example and Test

atomic_two_eigen_mat_inv.hpp

atomic_two Eigen Matrix Inversion Class

atomic_two_eigen_mat_mul.cpp

Atomic Eigen Matrix Multiply: Example and Test

atomic_two_eigen_mat_mul.hpp

atomic_two Eigen Matrix Multiply Class

azmul.cpp

AD Absolute Zero Multiplication: Example and Test

base2ad.cpp

Taylor’s Ode Solver: base2ad Example and Test

base2vec_ad.cpp

Using base2ad and VecAD together: Example and Test

base_adolc.hpp

Enable use of AD<Base> where Base is Adolc’s adouble Type

base_alloc.hpp

Example AD<Base> Where Base Constructor Allocates Memory

base_complex.hpp

Enable use of AD<Base> where Base is std::complex<double>

base_require.cpp

Using a User Defined AD Base Type: Example and Test

bender_quad.cpp

BenderQuad: Example and Test

bool_fun.cpp

AD Boolean Functions: Example and Test

bthread_get_started.cpp

Getting Started Using Boost Threads With CppAD

capacity_order.cpp

Controlling Taylor Coefficient Memory Allocation: Example and Test

change_param.cpp

Computing a Jacobian With Constants that Change

check_for_nan.cpp

ADFun Checking For Nan: Example and Test

check_numeric_type.cpp

The CheckNumericType Function: Example and Test

check_simple_vector.cpp

The CheckSimpleVector Function: Example and Test

chkpoint_two_base2ad.cpp

Checkpointing With base2ad: Example and Test

chkpoint_two_compare.cpp

Compare With and Without Checkpointing: Example and Test

chkpoint_two_dynamic.cpp

Checkpoint Functions with Dynamic Parameters: Example and Test

chkpoint_two_get_started.cpp

Get Started Checkpointing: Example and Test

chkpoint_two_ode.cpp

Checkpointing an ODE Solver: Example and Test

code_gen_fun_file.cpp

File Store and Retrieve a Code Gen Function: Example and Test

code_gen_fun_function.cpp

Evaluate a Code Gen Function: Example and Test

code_gen_fun_jac_as_fun.cpp

Pass Jacobian as Code Gen Function: Example and Test

code_gen_fun_jacobian.cpp

Evaluate Jacobian of a Code Gen Function: Example and Test

code_gen_fun_sparse_jac_as_fun.cpp

Pass Sparse Jacobian as Code Gen Function: Example and Test

code_gen_fun_sparse_jacobian.cpp

Evaluate Sparse Jacobian of a Code Gen Function: Example and Test

colpack_hes.cpp

ColPack: Sparse Hessian Example and Test

colpack_hessian.cpp

ColPack: Sparse Hessian Example and Test

colpack_jac.cpp

ColPack: Sparse Jacobian Example and Test

colpack_jacobian.cpp

ColPack: Sparse Jacobian Example and Test

compare.cpp

AD Binary Comparison Operators: Example and Test

compare_change.cpp

CompareChange and Re-Tape: Example and Test

complex_poly.cpp

Complex Polynomial: Example and Test

con_dyn_var.cpp

AD Parameter and Variable Functions: Example and Test

cond_exp.cpp

Conditional Expressions: Example and Test

conj_grad.cpp

Differentiate Conjugate Gradient Algorithm: Example and Test

cos.cpp

The AD cos Function: Example and Test

cosh.cpp

The AD cosh Function: Example and Test

cppad_eigen.hpp

Enable Use of Eigen Linear Algebra Package with CppAD

cppad_vector.cpp

CppAD::vector Template Class: Example and Test

dependency.cpp

Computing Dependency: Example and Test

det_by_lu.cpp

Determinant Using Lu Factorization: Example and Test

det_by_minor.cpp

Determinant Using Expansion by Minors: Example and Test

det_of_minor.cpp

Determinant of a Minor: Example and Test

div.cpp

AD Binary Division: Example and Test

div_eq.cpp

AD Compound Assignment Division: Example and Test

dll_lib.cpp

dll_lib: Example and Test

eigen_array.cpp

Using Eigen Arrays: Example and Test

eigen_det.cpp

Using Eigen To Compute Determinant: Example and Test

elapsed_seconds.cpp

Elapsed Seconds: Example and Test

equal_op_seq.cpp

EqualOpSeq: Example and Test

erf.cpp

The AD erf Function: Example and Test

erfc.cpp

The AD erfc Function: Example and Test

error_handler.cpp

Replacing The CppAD Error Handler: Example and Test

exp.cpp

The AD exp Function: Example and Test

expm1.cpp

The AD exp Function: Example and Test

expm1.cpp

The AD exp Function: Example and Test

fabs.cpp

AD Absolute Value Function: Example and Test

for_hes_sparsity.cpp

Forward Mode Hessian Sparsity: Example and Test

for_jac_sparsity.cpp

Forward Mode Jacobian Sparsity: Example and Test

for_one.cpp

First Order Partial Driver: Example and Test

for_sparse_hes.cpp

Forward Mode Hessian Sparsity: Example and Test

for_sparse_jac.cpp

Forward Mode Jacobian Sparsity: Example and Test

for_two.cpp

Subset of Second Order Partials: Example and Test

forward.cpp

Forward Mode: Example and Test

forward_dir.cpp

Forward Mode: Example and Test of Multiple Directions

forward_order.cpp

Forward Mode: Example and Test of Multiple Orders

from_json.cpp

Convert Jason Graph to an ADFun Object: Example and Test

fun_assign.cpp

ADFun Assignment: Example and Test

fun_check.cpp

ADFun Check and Re-Tape: Example and Test

fun_property.cpp

ADFun Function Properties: Example and Test

function_name.cpp

ADFun Function Name: Example and Test

general.cpp

General Examples and Tests Driver

get_started.cpp

Getting Started Using CppAD to Compute Derivatives

graph_add_op.cpp

C++ AD Graph add Operator: Example and Test

graph_atom4_op.cpp

C++ AD Graph Atomic Four Functions: Example and Test

graph_atom_op.cpp

C++ AD Graph Atomic Three Functions: Example and Test

graph_azmul_op.cpp

C++ AD Graph add Operator: Example and Test

graph_cexp_op.cpp

C++ AD Graph Conditional Expressions: Example and Test

graph_comp_op.cpp

C++ AD Graph Comparison Operators: Example and Test

graph_discrete_op.cpp

C++ AD Graph add Operator: Example and Test

graph_div_op.cpp

C++ AD Graph div Operator: Example and Test

graph_mul_op.cpp

C++ AD Graph mul Operator: Example and Test

graph_pow_op.cpp

C++ AD Graph pow Operator: Example and Test

graph_print_op.cpp

C++ AD Graph print Operator: Example and Test

graph_sub_op.cpp

C++ AD Graph sub Operator: Example and Test

graph_sum_op.cpp

C++ AD Graph sum Operator: Example and Test

graph_unary_op.cpp

Graph Unary Operator: Example and Test

harmonic.cpp

Multi-Threading Harmonic Summation Example / Test

hes_lagrangian.cpp

Hessian of Lagrangian and ADFun Default Constructor: Example and Test

hes_lu_det.cpp

Gradient of Determinant Using LU Factorization: Example and Test

hes_minor_det.cpp

Gradient of Determinant Using Expansion by Minors: Example and Test

hes_times_dir.cpp

Hessian Times Direction: Example and Test

hessian.cpp

Hessian: Example and Test

independent.cpp

Independent and ADFun Constructor: Example and Test

index_sort.cpp

Index Sort: Example and Test

integer.cpp

Convert From AD to Integer: Example and Test

interface2c.cpp

Interfacing to C: Example and Test

interp_onetape.cpp

Interpolation With Out Retaping: Example and Test

interp_retape.cpp

Interpolation With Retaping: Example and Test

ipopt_solve_get_started.cpp

Nonlinear Programming Using CppAD and Ipopt: Example and Test

ipopt_solve_ode_inverse.cpp

ODE Inverse Problem Definitions: Source Code

ipopt_solve_retape.cpp

Nonlinear Programming Retaping: Example and Test

jac_lu_det.cpp

Gradient of Determinant Using Lu Factorization: Example and Test

jac_minor_det.cpp

Gradient of Determinant Using Expansion by Minors: Example and Test

jacobian.cpp

Jacobian: Example and Test

jit_atomic.cpp

Atomic Callbacks in JIT Function: Example and Test

jit_compare_change.cpp

The JIT compare_change Argument: Example and Test

jit_compile.cpp

JIT Compiler Options: Example and Test

jit_dynamic.cpp

JIT With Dynamic Parameters: Example and Test

jit_get_started.cpp

JIT Computation of Derivatives: Example and Test

json_add_op.cpp

Json add Operator: Example and Test

json_atom4_op.cpp

Json Atomic Function Operator: Example and Test

json_atom_op.cpp

Json Atomic Function Three Operator: Example and Test

json_azmul_op.cpp

Json azmul Operator: Example and Test

json_cexp_op.cpp

Json Conditional Expressions: Example and Test

json_comp_op.cpp

Json Comparison Operators: Example and Test

json_discrete_op.cpp

Json add Operator: Example and Test

json_div_op.cpp

Json div Operator: Example and Test

json_get_started.cpp

Json Get Started: Example and Test

json_mul_op.cpp

Json mul Operator: Example and Test

json_pow_op.cpp

Json pow Operator: Example and Test

json_print_op.cpp

Json AD Graph print Operator: Example and Test

json_sparse.cpp

Json Representation of a Sparse Matrix: Example and Test

json_sub_op.cpp

Json sub Operator: Example and Test

json_sum_op.cpp

Json sum Operator: Example and Test

json_unary_op.cpp

Json Unary Operators: Example and Test

log.cpp

The AD log Function: Example and Test

log10.cpp

The AD log10 Function: Example and Test

log1p.cpp

The AD log1p Function: Example and Test

lp_box.cpp

abs_normal lp_box: Example and Test

lp_box.hpp

lp_box Source Code

lu_factor.cpp

LuFactor: Example and Test

lu_invert.cpp

LuInvert: Example and Test

lu_ratio.cpp

LuRatio: Example and Test

lu_solve.cpp

LuSolve With Complex Arguments: Example and Test

lu_vec_ad_ok.cpp

Lu Factor and Solve With Recorded Pivoting: Example and Test

mat_sum_sq.cpp

Sum of the Elements of the Square of a Matrix: Example and Test

min_nso_linear.cpp

abs_normal min_nso_linear: Example and Test

min_nso_linear.hpp

min_nso_linear Source Code

min_nso_quad.cpp

abs_normal min_nso_quad: Example and Test

min_nso_quad.hpp

min_nso_quad Source Code

mul.cpp

AD Binary Multiplication: Example and Test

mul_eq.cpp

AD Compound Assignment Multiplication: Example and Test

mul_level.cpp

Multiple Level of AD: Example and Test

mul_level_adolc.cpp

Using Adolc with Multiple Levels of Taping: Example and Test

mul_level_adolc_ode.cpp

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

mul_level_ode.cpp

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

multi_atomic_three.cpp

Multi-Threading atomic_three Example / Test

multi_atomic_two.cpp

Multi-Threading atomic_two Example / Test

multi_chkpoint_one.cpp

Multi-Threading chkpoint_one Example / Test

multi_chkpoint_two.cpp

Multi-Threading chkpoint_two Example / Test

multi_newton.cpp

Multi-Threaded Newton Method Example / Test

nan.cpp

nan: Example and Test

near_equal.cpp

NearEqual Function: Example and Test

near_equal_ext.cpp

Compare AD with Base Objects: Example and Test

new_dynamic.cpp

Dynamic Parameters: Example and Test

num_limits.cpp

Numeric Limits: Example and Test

number_skip.cpp

Number of Variables That Can be Skipped: Example and Test

numeric_type.cpp

The NumericType: Example and Test

ode_err_control.cpp

OdeErrControl: Example and Test

ode_err_maxabs.cpp

OdeErrControl: Example and Test Using Maxabs Argument

ode_evaluate.cpp

ode_evaluate: Example and test

ode_gear.cpp

OdeGear: Example and Test

ode_gear_control.cpp

OdeGearControl: Example and Test

ode_stiff.cpp

A Stiff Ode: Example and Test

openmp_get_started.cpp

Getting Started Using OpenMP Threads With CppAD

opt_val_hes.cpp

opt_val_hes: Example and Test

optimize_compare_op.cpp

Optimize Comparison Operators: Example and Test

optimize_conditional_skip.cpp

Optimize Conditional Expressions: Example and Test

optimize_cumulative_sum.cpp

Optimize Cumulative Sum Operations: Example and Test

optimize_forward_active.cpp

Optimize Forward Activity Analysis: Example and Test

optimize_nest_conditional.cpp

Optimize Nested Conditional Expressions: Example and Test

optimize_print_for.cpp

Optimize Print Forward Operators: Example and Test

optimize_reverse_active.cpp

Optimize Reverse Activity Analysis: Example and Test

optimize_twice.cpp

Optimizing Twice: Example and Test

poly.cpp

Polynomial Evaluation: Example and Test

pow.cpp

The AD Power Function: Example and Test

pow_int.cpp

The Pow Integer Exponent: Example and Test

pow_nan.cpp

pow: Nan in Result of Pow Function: Example and Test

print_for_cout.cpp

Printing During Forward Mode: Example and Test

print_for_string.cpp

Print During Zero Order Forward Mode: Example and Test

print_graph.cpp

Print a C++ AD Graph: Example and Test

pthread_get_started.cpp

Getting Started Using Posix Threads With CppAD

qp_box.cpp

abs_normal qp_box: Example and Test

qp_box.hpp

qp_box Source Code

qp_interior.cpp

abs_normal qp_interior: Example and Test

qp_interior.hpp

qp_interior Source Code

rc_sparsity.cpp

Preferred Sparsity Patterns: Row and Column Indices: Example and Test

rev_checkpoint.cpp

Reverse Mode General Case (Checkpointing): Example and Test

rev_hes_sparsity.cpp

Reverse Mode Hessian Sparsity: Example and Test

rev_jac_sparsity.cpp

Reverse Mode Jacobian Sparsity: Example and Test

rev_one.cpp

First Order Derivative Driver: Example and Test

rev_sparse_hes.cpp

Reverse Mode Hessian Sparsity: Example and Test

rev_sparse_jac.cpp

Reverse Mode Jacobian Sparsity: Example and Test

rev_two.cpp

Second Partials Reverse Driver: Example and Test

reverse_one.cpp

First Order Reverse Mode: Example and Test

reverse_three.cpp

Third Order Reverse Mode: Example and Test

reverse_two.cpp

Second Order Reverse ModeExample and Test

romberg_mul.cpp

Multi-Dimensional Romberg Integration: Example and Test

romberg_one.cpp

One Dimensional Romberg Integration: Example and Test

rosen_34.cpp

rosen_34: Example and Test

runge45_1.cpp

Runge45: Example and Test

runge_45.cpp

Runge45: Example and Test

set_union.cpp

Set Union: Example and Test

simple_vector.cpp

Simple Vector Template Class: Example and Test

simplex_method.cpp

abs_normal simplex_method: Example and Test

simplex_method.hpp

simplex_method Source Code

sin.cpp

The AD sin Function: Example and Test

sinh.cpp

The AD sinh Function: Example and Test

sparse2eigen.cpp

Converting CppAD Sparse Matrix to Eigen Format: Example and Test

sparse_hes.cpp

Computing Sparse Hessian: Example and Test

sparse_hes_fun.cpp

sparse_hes_fun: Example and test

sparse_hessian.cpp

Sparse Hessian: Example and Test

sparse_jac_for.cpp

Computing Sparse Jacobian Using Forward Mode: Example and Test

sparse_jac_fun.cpp

sparse_jac_fun: Example and test

sparse_jac_rev.cpp

Computing Sparse Jacobian Using Reverse Mode: Example and Test

sparse_jacobian.cpp

Sparse Jacobian: Example and Test

sparse_rc.cpp

sparse_rc: Example and Test

sparse_rcv.cpp

sparse_rcv: Example and Test

sparse_sub_hes.cpp

Subset of a Sparse Hessian: Example and Test

sparsity_sub.cpp

Sparsity Patterns For a Subset of Variables: Example and Test

speed_example.cpp

Speed Examples and Tests Driver

speed_program.cpp

Example Use of SpeedTest

speed_test.cpp

speed_test: Example and test

sqrt.cpp

The AD sqrt Function: Example and Test

stack_machine.cpp

Example Differentiating a Stack Machine Interpreter

sub.cpp

AD Binary Subtraction: Example and Test

sub_eq.cpp

AD Compound Assignment Subtraction: Example and Test

sub_sparse_hes.cpp

Computing Sparse Hessian for a Subset of Variables

subgraph_hes2jac.cpp

Sparse Hessian Using Subgraphs and Jacobian: Example and Test

subgraph_jac_rev.cpp

Computing Sparse Jacobian Using Reverse Mode: Example and Test

subgraph_reverse.cpp

Computing Reverse Mode on Subgraphs: Example and Test

subgraph_sparsity.cpp

Subgraph Dependency Sparsity Patterns: Example and Test

switch_var_dyn.cpp

Switching Between Variables and Dynamic Parameters: Example and Test

tan.cpp

The AD tan Function: Example and Test

tanh.cpp

The AD tanh Function: Example and Test

tape_index.cpp

Taping Array Index Operation: Example and Test

taylor_ode.cpp

Taylor’s Ode Solver: An Example and Test

team_bthread.cpp

Boost Thread Implementation of a Team of AD Threads

team_example.cpp

Using a Team of AD Threads: Example and Test

team_openmp.cpp

OpenMP Implementation of a Team of AD Threads

team_pthread.cpp

Pthread Implementation of a Team of AD Threads

team_thread.hpp

Specifications for A Team of AD Threads

thread_alloc.cpp

Fast Multi-Threading Memory Allocator: Example and Test

thread_test.cpp

Run Multi-Threading Examples and Speed Tests

time_test.cpp

time_test: Example and test

to_json.cpp

Convert an ADFun Object to a Json AD Graph: Example and Test

to_string.cpp

to_string: Example and Test

unary_minus.cpp

AD Unary Minus Operator: Example and Test

unary_plus.cpp

AD Unary Plus Operator: Example and Test

value.cpp

Convert From AD to its Base Type: Example and Test

var2par.cpp

Convert a Variable or Dynamic Parameter a Constant: Example and Test

vec_ad.cpp

AD Vectors that Record Index Operations: Example and Test

vector_bool.cpp

CppAD::vectorBool Class: Example and Test