coin-or / CppAD

A C++ Algorithmic Differentiation Package: Home Page
https://cppad.readthedocs.io
Other
469 stars 95 forks source link

Name of function is cleared after val_graph optimization #194

Open metab0t opened 7 months ago

metab0t commented 7 months ago

The name of function is reset after val2fun but is unchanged if we do not use val_graph optimization. Should the behavior be consistent across different optimization options? https://github.com/coin-or/CppAD/blob/7a81cb7a777ad1536ea3bfdaf5249eae33ffd5ed/include/cppad/local/val_graph/val2fun.hpp#L1000