Skip to content
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

refactor: Move dual nonlinear solving to NonlinearSolveBase #513

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ErikQQY
Copy link
Member

@ErikQQY ErikQQY commented Dec 2, 2024

Fix: #512

Move the solving dispatch for nonlinear problems with u0 or p specified as Dual number to NonlinearSolveBase so that all sub-packages can share this feature.

@ErikQQY ErikQQY marked this pull request as draft December 2, 2024 17:26
@avik-pal
Copy link
Member

avik-pal commented Dec 3, 2024

overall this looks correct, the reason we had this in NonlinearSolve was the Poly algorithms, but now that those have been moved to base, we can safely do this

@ErikQQY ErikQQY marked this pull request as ready for review December 4, 2024 14:12
@ErikQQY
Copy link
Member Author

ErikQQY commented Dec 4, 2024

I believe this PR is ready now. To avoid introducing additional overhead in Base, I put the init and solve dispatch of Dual nonlinear problems in every sub-package extension for ForwardDiff so that different kinds of AbstractNonlinearSolveAlgorithm can have a dispatch on this kind of problem.

@ErikQQY ErikQQY requested a review from avik-pal December 4, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access to undefined reference when solving problems with Dual of BigFloat
2 participants