Prev
Next
Index->
contents
reference
index
search
external
Up->
cppad_swig
library
a_fun
a_fun_optimize
cppad_swig->
testing
swig_xam.i
library
whats_new_2018
library->
module
a_double
vector
a_fun
sparse
error
xam.m4
a_fun->
independent
abort_recording
a_fun_ctor
a_fun_jacobian
a_fun_hessian
a_fun_forward
a_fun_reverse
a_fun_optimize
a_fun_property
a_fun_optimize->
a_fun_optimize_xam.cpp
a_fun_optimize_xam.m
a_fun_optimize_xam.pm
a_fun_optimize_xam.py
Headings->
Syntax
Purpose
af
Example
@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Optimize an AD Function
Syntax
af
.optimize()
Purpose
This reduces the number of operations (hence to time and memory) used to compute the function stored in
af
On the other hand, the optimization may take a significant amount of time and memory.
af
This object has prototype
a_fun
af
Example
C++
,
Octave
,
Perl
,
Python
.
Input File: lib/a_fun.cpp