Prev Next

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Optimize an AD Function

Syntax
f.optimize()

Purpose
This reduces the number of operations (hence to time and memory) used to compute the function stored in f On the other hand, the optimization may take a significant amount of time and memory.

f
This object is a d_fun . Optimizing this f also optimizes the corresponding a_fun .

Example
fun_optimize_xam.cpp
Input File: lib/cplusplus/fun.cpp