-
Notifications
You must be signed in to change notification settings - Fork 156
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
Resolve Symbolics.Num - ForwardDiff.Dual ambiguities #1036
Resolve Symbolics.Num - ForwardDiff.Dual ambiguities #1036
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1036 +/- ##
===========================================
- Coverage 77.54% 19.28% -58.26%
===========================================
Files 30 31 +1
Lines 3429 3427 -2
===========================================
- Hits 2659 661 -1998
- Misses 770 2766 +1996 ☔ View full report in Codecov by Sentry. |
Looks, good, though just needs some test fixes https://github.com/JuliaSymbolics/Symbolics.jl/actions/runs/7438325797/job/20241004954?pr=1036#step:7:650 |
Thanks @ChrisRackauckas for checking! I updated the tests, should work better now. I also removed the fma method definitions which I thought I had already deleted. |
This is a first attempt at resolving #1032.
The easiest way to resolve the issue seems to be to copy the relevant method definitions from ForwardDiff, which is what is done in this PR.
Unfortunately this introduces a lot of code duplication. An alternative approach would be to convert the method definition loops in https://github.com/JuliaDiff/ForwardDiff.jl/blob/master/src/dual.jl into functions that take a list of the ambiguous types as argument. However, this requires more changes to ForwardDiff in order to prevent existing methods from getting overwritten (e.g. here).
Let me know if you'd have any suggestions for this PR and I'll accommodate them.