-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional expressions erroneously skip operations for AD<AD<double> > #7
Comments
This bug has been verified; see |
I have added a temporary (undocumented) feature |
Thank you!
|
In the long term, I plan to add information to the tape that informs the For this reason, I have not made Brad. On 3/2/2015 3:13 AM, João Rui Leal wrote:
|
I think that I have fixed this issue with the following commit |
Thank you! 2015-05-27 6:57 GMT+01:00 Brad Bell notifications@github.com:
|
This issue has been fixed. |
The
optimize()
method in ADFun will determine which operations can be skipped when using conditional expressions so that only the required branch needs to be evaluated.When using
AD<AD<double> >
orAD<CG<double> >
these operations should not be skipped.Here is a file to reproduce the issue:
The text was updated successfully, but these errors were encountered: