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
.