Commit b14675e
Use DEFAULT_SPECIALIZATION for NonlinearFunction constructors
Change NonlinearFunction constructors to use DEFAULT_SPECIALIZATION
(which defaults to AutoSpecialize via Preferences) instead of hardcoded
FullSpecialize. This matches the intended behavior where AutoSpecialize
is the default specialization level.
When NonlinearSolve.jl reads the AutoSpecialize trait, it wraps the
function in FunctionWrappers to eliminate per-function recompilation.
Without NonlinearSolve.jl#838, AutoSpecialize is a no-op (the trait
is stored but never read), so this change is backwards compatible.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e7e9915 commit b14675e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4480 | 4480 | | |
4481 | 4481 | | |
4482 | 4482 | | |
4483 | | - | |
| 4483 | + | |
4484 | 4484 | | |
4485 | 4485 | | |
4486 | 4486 | | |
4487 | | - | |
| 4487 | + | |
4488 | 4488 | | |
4489 | 4489 | | |
4490 | 4490 | | |
| |||
0 commit comments