Repository navigation
Always use QR with AlmostBandedMatrices - #1324
Merged
Merged
Conversation
5 tasks done
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 21, 2026
Ships everything on main since 5.17.7: - Refactor PureKLU with the pivots reused unless growth says otherwise (#1330) — restores the fast refactorization path; behaviour differs from 5.17.4/5.17.5, which always re-pivoted. Raises the PureKLU floor to 1.6 (registered). - Keep a sparse Dual operand's pattern through the primal extraction (#1329) — fixes the snlu! pattern mismatch; map_stored! now throws DimensionMismatch on a size mismatch instead of silently corrupting the destination, and partial_vals! no longer prunes zero-derivative entries. - Route triangular matrices to DirectLdiv! in the default algorithm (#1336). - Apply InvPreconditioner through a temporary instead of aliasing its input (#1323). - Always use QR with AlmostBandedMatrices (#1324). - Route Hermitian like Symmetric instead of always reaching for Cholesky (#1327). - Add the missing trailing newline to test/Core/banded.jl (#1331). Minor rather than patch: the default-algorithm routing changes and the PureKLU re-pivot change what existing code computes or how it is factorized, and map_stored! gains an error path where it previously produced (wrong) results. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.273 Agent-Model: claude-opus-5[1m] Agent-Session: 6a01e420-3436-4518-83cc-6cd853283cfb (local transcript; this harness publishes no conversation URL)
ChrisRackauckas
added a commit
that referenced
this pull request
Sep 21, 2026
Ships everything on main since 5.17.7: - Refactor PureKLU with the pivots reused unless growth says otherwise (#1330) — restores the fast refactorization path; behaviour differs from 5.17.4/5.17.5, which always re-pivoted. Raises the PureKLU floor to 1.6 (registered). - Keep a sparse Dual operand's pattern through the primal extraction (#1329) — fixes the snlu! pattern mismatch; map_stored! now throws DimensionMismatch on a size mismatch instead of silently corrupting the destination, and partial_vals! no longer prunes zero-derivative entries. - Route triangular matrices to DirectLdiv! in the default algorithm (#1336). - Apply InvPreconditioner through a temporary instead of aliasing its input (#1323). - Always use QR with AlmostBandedMatrices (#1324). - Route Hermitian like Symmetric instead of always reaching for Cholesky (#1327). - Add the missing trailing newline to test/Core/banded.jl (#1331). Minor rather than patch: the default-algorithm routing changes and the PureKLU re-pivot change what existing code computes or how it is factorized, and map_stored! gains an error path where it previously produced (wrong) results. Agent-Harness: Claude Code 2.1.273 Agent-Model: claude-opus-5[1m] Agent-Session: 6a01e420-3436-4518-83cc-6cd853283cfb (local transcript; this harness publishes no conversation URL) Co-authored-by: Claude <noreply@anthropic.com>
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.
Need SciML/FastAlmostBandedMatrices.jl#94
Square
AlmostBandedMatrixsystems defaulted toDirectLdiv!, which recomputed the QR factorization on every solve.Switching the default to
QRFactorizationallows LinearSolve to cache the factorization and reuse it when only the right-hand side changes. This avoids repeated factorization work and allocations, reducing runtime and memory allocation when solving multiple right-hand sides through the same cache.before
after