Skip to content

Allow LinearSolve v4#1002

Merged
ChrisRackauckas merged 2 commits into
masterfrom
linearsolve-v4-compat
Jul 5, 2026
Merged

Allow LinearSolve v4#1002
ChrisRackauckas merged 2 commits into
masterfrom
linearsolve-v4-compat

Conversation

@ChrisRackauckas

Copy link
Copy Markdown
Member

Widens `LinearSolve` compat to include v4 and bumps affected subpackage patch versions.

Context

LinearSolve v4.0.0 (SciML/LinearSolve.jl#1072) adds batched (matrix) right-hand side support. The only breaking aspects are (1) the u0 shape for a matrix b changes from a flattened length-n vector to n×k, and (2) matrix-b + iterative solvers now error at init.

The #1072 downstream audit found NonlinearSolve functionally unaffected: the one production solve site (in NonlinearSolveBase) passes a flattened vector. So this PR is compat-only.

Changes

  • LinearSolve = "3.48""3.48, 4" — top-level, NonlinearSolveBase, test/gpu
  • LinearSolve = "2.36.1, 3""2.36.1, 3, 4" — NonlinearSolveFirstOrder, NonlinearSolveQuasiNewton
  • LinearSolve = "2, 3""2, 3, 4"docs
  • Patch version bump on NonlinearSolve, NonlinearSolveFirstOrder, NonlinearSolveQuasiNewton. NonlinearSolveBase is left at 2.31.4 (already one patch ahead of the registered 2.31.3); its compat change rides that pending version. Test/docs envs not bumped.

CI here will go green once LinearSolve v4.0.0 finishes propagating into the General registry.

🤖 Generated with Claude Code

ChrisRackauckas and others added 2 commits July 4, 2026 20:57
LinearSolve v4.0.0 adds batched (matrix) right-hand side support
(SciML/LinearSolve.jl#1072). NonlinearSolve is functionally unaffected —
the one production solve site in NonlinearSolveBase passes a flattened
vector — so this only widens compat to include v4 and bumps affected
subpackage patch versions. (NonlinearSolveBase already at 2.31.4.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 043cb42 into master Jul 5, 2026
92 of 95 checks passed
@ChrisRackauckas ChrisRackauckas deleted the linearsolve-v4-compat branch July 5, 2026 04:52
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.

1 participant