-
Notifications
You must be signed in to change notification settings - Fork 38
Separate default implementations from api.jl #513
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
base: main
Are you sure you want to change the base?
Separate default implementations from api.jl #513
Conversation
- Create src/nlp/defaults.jl for default implementations - Update src/NLPModels.jl to include defaults.jl after api.jl - Move default implementations from api.jl to defaults.jl - Replace implementations with function stubs in api.jl - Resolves method overwriting warnings during precompilation - Fixes GitHub issue JuliaSmoothOptimizers#385: Separate the default implementations from the api file Functions refactored: - grad(), cons(), cons!(), cons_lin(), cons_nln() - jth_congrad(), objcons(), objcons!(), objgrad(), objgrad!() - jac_structure(), jac_structure!(), jac_lin_structure(), jac_nln_structure() All tests pass and module loads without warnings.
@tmigot @amontoison please review this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @arnavk23 for the PR. Are you planning to do the same for NLS in a separate PR?
Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
@arnavk23 Could you please explain what you refactored exactly? |
Files changed / added
Concrete functions moved (representative list)NLP (moved into
NLS (moved into
Why this change fixes the problem
|
Functions refactored:
Closes #385