Repository navigation
Raise LinearSolve floor for dual matrices - #1163
Merged
ChrisRackauckas merged 1 commit intoAug 14, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas
marked this pull request as ready for review
August 14, 2026 12:55
This was referenced Aug 14, 2026
ChrisRackauckas
added a commit
that referenced
this pull request
Aug 14, 2026
NonlinearSolveBase already requires LinearSolve 5.4 (#1163). The FirstOrder and QuasiNewton sublibraries still declared LinearSolve 5, so Downgrade Sublibraries pinned 5.0.0 and Pkg.test failed as unsatisfiable. Co-authored-by: ChrisRackauckas-Claude <[email protected]>
This was referenced Aug 14, 2026
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.
Ignore this PR until reviewed by @ChrisRackauckas.
What changed
Raise the LinearSolve compat floor from 5.0.1/5 to 5.4 in NonlinearSolve and NonlinearSolveBase. LinearSolve 5.4 is the first release in this series that imports
SciMLOperators.issquare, which is required when the downgraded NonlinearSolve Core suite initializes aLinearProblemwhose matrix contains nested ForwardDiff duals.This is a mechanical compat-only follow-up to #1162. It does not change solver behavior or tests.
Failing before
The exact downgraded Core job for #1162 resolved LinearSolve 5.0.1 and failed in
test/Core/forward_ad_tests__item2.jl:Job: https://github.com/SciML/NonlinearSolve.jl/actions/runs/31797173617/job/94756697451
A local isolated version matrix reproduced the same
UndefVarErrorwith LinearSolve 5.0.1, 5.1.0, 5.2.0, and 5.3.0. Changing only LinearSolve to 5.4.0 made the identical dual-matrixLinearProbleminitialization printlinear init passed.Passing after
I reproduced the repository's downgrade route locally on Julia 1.10:
The resolved manifest selected LinearSolve 5.4.0. The previously failing NLLS Hessian test passed 10/10, and the full Core group completed with:
Additional local checks:
GROUP=QA julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test()'— QA 28/28; package tests passed.typos Project.toml lib/NonlinearSolveBase/Project.toml lib/SCCNonlinearSolve/Project.toml— passed.git diff --check— passed.No documentation, public definitions, GPU paths, downstream packages, or
GROUP=Everythingwere changed or tested.