Closed perrydv closed 2 years ago
@perrydv Thanks for the bug report. I think the following commit fixes this bug: https://github.com/coin-or/CppAD/commit/a7fe6c0fe50014b34b75448199af1212e09d5d6f
Please try the current master and see if it works for you. If so, then please close the bug.
Thanks again.
@bradbell Sorry for the delay and yes I confirm this fixes the test case I was using. Thanks. I will close now.
Hi @bradbell, it looks like
CPPAD_DISCRETE_FUNCTION
does not work correctly through use of base2ad. Reproducible example below. Is it supposed to work? Am I trying to use it correctly? Thanks!In the code below, there is a flag to use a simple alternative calculation in the AD tape, as a check that the code works except for the
CPPAD_DISCRETE_FUNCTION
issue.