\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
py_fun_optimize#
View page sourceOptimize 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 is a d_fun. Optimizing this f also optimizes the corresponding a_fun.