Repository navigation
Add LinearSolve 5 compatibility across NonlinearSolve sublibraries - #1043
Merged
ChrisRackauckas merged 1 commit intoJul 11, 2026
Merged
Conversation
Widen the LinearSolve [compat] ceiling to include 5 in every monorepo Project.toml that still capped it at 4, so the full stack can resolve LinearSolve 5.0. Lower bounds are preserved (only the ceiling widens). Compat + version bumps (minor, per SemVer for a widened compat range): - NonlinearSolve (root): LinearSolve 3.48, 4 -> 3.48, 4, 5 v4.20.4 -> v4.21.0 - NonlinearSolveFirstOrder: LinearSolve 2.36.1, 3, 4 -> +5 v2.1.3 -> v2.2.0 - NonlinearSolveQuasiNewton: LinearSolve 2.36.1, 3, 4 -> +5 v1.13.3 -> v1.14.0 - docs env: LinearSolve 2, 3, 4 -> 2, 3, 4, 5 - test/gpu env: LinearSolve 3.48, 4 -> 3.48, 4, 5 NonlinearSolveBase is handled by SciML#1039 (LinearSolve 4.3, 5) and is not touched here. No code changes: no package reads LinearSolution.cache (the 4->5 break); LinearSolve results are consumed only via retcode/u. Co-Authored-By: Claude Fable 5 <[email protected]> Co-Authored-By: Chris Rackauckas <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LinearSolve 5.0.0 is registered, but every NonlinearSolve.jl monorepo sublibrary (outside NonlinearSolveBase) still caps LinearSolve at 4, so the full stack cannot resolve LinearSolve 5. This PR widens the LinearSolve
[compat]ceiling to include5in every remaining Project.toml, and bumps each changed package's version accordingly. Lower bounds are preserved — only the ceiling widens.Packages bumped
3.48, 4→3.48, 4, 54.20.4→4.21.02.36.1, 3, 4→2.36.1, 3, 4, 52.1.3→2.2.02.36.1, 3, 4→2.36.1, 3, 4, 51.13.3→1.14.02, 3, 4→2, 3, 4, 53.48, 4→3.48, 4, 5These are the only Project.tomls in the monorepo with a LinearSolve
[compat]entry other than NonlinearSolveBase. The other sublibraries (BracketingNonlinearSolve, SimpleNonlinearSolve, NonlinearSolveSpectralMethods, SCCNonlinearSolve, NonlinearSolveHomotopyContinuation, SciMLJacobianOperators, NonlinearSolveSciPy) have no direct LinearSolve compat and reach it transitively through NonlinearSolveBase, so they need no change. The version bumps are minor per SemVer (widened compat range = new feature); no inter-package compat widening is required — all downstream caps on the bumped packages (4.19,4.8,4.10,4,2,2.1.2,1.12,1) already admit the new versions.Coordination
The full LinearSolve 5 stack requires all three of:
4.3, 5(owned by that PR; not touched here).No code change
No package reads
LinearSolution.cache(the 4→5 break, #1083). NonlinearSolve consumes LinearSolve solve results only vialinres.retcodeandlinres.u(inNonlinearSolveBaseLinearSolveExt), which are stable across LinearSolve 3/4/5.grepfor.cacheinsrcfound only internal struct fields (Broyden low-rank Jacobian, JᵀJ operators), never a read off a solve result. So this is compat + version only.Local verification
Verified in a scratch temp env with all local monorepo packages
dev'd by path, plus #1039's NonlinearSolveBase compat applied locally as a dev patch (4.3, 5), since #1039 isn't merged yet.Full-stack resolution + precompile on LinearSolve 5.0.0:
Representative solves on LinearSolve 5.0.0 (all Success):
Still resolves on LinearSolve 4.3.0 (4.x not broken):
Note: This PR should be ignored until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code