lines 933-965 of file: lib/cplusplus/fun.cpp {xrst_begin cpp_fun_optimize} 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 :ref:`d_fun`. Optimizing this *f* also optimizes the corresponding :ref:`a_fun`. {xrst_toc_hidden example/cplusplus/fun_optimize_xam.cpp } Example ******* :ref:`fun_optimize_xam.cpp-name` {xrst_end cpp_fun_optimize}