Repository navigation
Say why the linear path ignores new_W_dt_cutoff - #4527
Merged
ChrisRackauckas merged 2 commits intoSep 12, 2026
Merged
ChrisRackauckas merged 2 commits into
ChrisRackauckas merged 2 commits into
Conversation
The comment on the `islin` branch of `do_newJW` justified taking every γdt change with "there is nothing for `new_W_dt_cutoff` to amortize", which is backwards: the refactorization is exactly what that cutoff amortizes. The reason the cutoff is not worth taking here is that `defaultalg` answers `LHLFactorization` for this split `W`, and LHL absorbs a new γdt by re-shifting the Hessenberg form in O(n²) with the reduction untouched — cheap precisely because `J` never moves on a linear function. Verified at runtime that the default is LHL for this path, dense and sparse `J` alike: `_lhl_defaultable` is true and `DefaultLinearSolver.alg` is `LHLFactorization` for `ODEFunction(MatrixOperator(A))` at n = 800 sparse and n = 1000 dense. Also bumps OrdinaryDiffEqDifferentiation to 3.11.6: SciML#4470 bumped to 3.11.5, which master has since released. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Agent-Harness: Claude Code 2.1.269 Agent-Model: claude-opus-5[1m] Agent-Session: https://claude.ai/code/session_01D1XiWgJ1PJFDLAWTM1583M Claude-Session: https://claude.ai/code/session_01D1XiWgJ1PJFDLAWTM1583M
ChrisRackauckas
marked this pull request as ready for review
September 12, 2026 15:50
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 13, 2026
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520) - Add adaptive step size control to SDC (#4346) - Allow JET 0.12 in every QA test environment (#4513) - Resolve OrdinaryDiffEqDefault against the local sublibraries (#4514) - NonlinearSolveAlg: stale-Jacobian retry + rejected-step W reassembly (carries #4282 to current master) (#4505) - Do not seed a retry from the previous-step interpolant (#4473) - Say why the linear path ignores new_W_dt_cutoff (#4527) - Carry the QNDF2 difference array across steps (#4526) - Pass Θ = 0, not the absolute time, to the AN5 startup interpolant (#4534) - Make the stabilized-RK step cap and eigenvalue tolerance direction-agnostic (#4536) Agent-Harness: Claude Code Agent-Model: claude-opus-5[1m] Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude Opus 5 (1M context) <[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.
Stacks on #4470 — please ignore until reviewed by @ChrisRackauckas.
This branch is #4470 rebased onto current master, plus one commit. Review only
the second commit (
Say why the linear path ignores new_W_dt_cutoff); thefirst is #4470 unchanged. If #4470 merges first, this rebases down to the
comment and the version bump.
What changed and why
#4470 justifies taking every γdt change on the
islinbranch ofdo_newJWwith:
That is backwards. The refactorization is exactly what
new_W_dt_cutoffamortizes — its docstring is "relative change in
γΔtabove whichWisrefactorized", not anything about Jacobian evaluations.
The real reason the cutoff is not worth taking on this path is the linear
solver:
defaultalganswersLHLFactorizationfor a splitWOperator, andLHL absorbs a new γdt by re-shifting the Hessenberg form in O(n²) while the
O(n³) reduction stays put — cheap precisely because
Jnever moves on a linearfunction. The comment now says that, with the O(n³) case a reader hits by
pinning a factorization noted in parentheses.
No behavior change: comment text plus a version bump.
Verification
The claim in the new comment, checked at runtime rather than read off the
source (I first read a stale copy of
default.jland got this wrong):for
ODEProblem(ODEFunction(MatrixOperator(A)), u0, tspan)underSDIRK2,reading
integrator.cache.nlsolver.cache.linsolve.alg.algafter two steps.Version bump
3.11.5 → 3.11.6. #4470 bumps to 3.11.5, which master has since released, so
that bump collides as-is.
What I did not verify
No failing-before/passing-after evidence, because there is no behavior change
to discriminate — the only executable change is the
versionstring. TheOrdinaryDiffEqDifferentiationsuite is running locally and I will post theresult; #4470's own CI is 184/184 green on the identical code. I did not run
QA, the docs build (no docstrings touched), GPU, or downstream.
Worth pushing back on
The parenthetical about a pinned factorization paying O(n³) is mine, not
#4470's reasoning — drop it if you think it invites the wrong question. That
case is real (measured
nw49 → 602 on a dense N=300LUFactorization()run)but it is not the default path.
🤖 Generated with Claude Code (model: claude-opus-5[1m])
https://claude.ai/code/session_01D1XiWgJ1PJFDLAWTM1583M