Prev | Next |

@(@\newcommand{\B}[1]{{\bf #1}} \newcommand{\R}[1]{{\rm #1}}@)@

*f*.optimize()

The operation sequence corresponding to an ADFun object can be very large and involve many operations. The

*f*.optimize

procedure reduces the number of operations,
and thereby the time and memory, required to
compute function and derivative values.
The object

*f*

is an adfun
object.
The

`optimize`

member function
may greatly reduce the size of the operation sequence corresponding to
*f*

.
The file optimize.py contains an example and test of this operation.

Input File: pycppad/adfun.cpp