exp: Padé denominator via GESVFactorization#240
Draft
ChrisRackauckas-Claude wants to merge 1 commit into
Draft
Conversation
Benchmarks of the four candidate solve paths on identical per-cell matrices (n = 5..250, scales 0.3/4.0, best-of-N with preallocated caches, Julia 1.12, OpenBLAS single-threaded) showed LinearSolve's new GESVFactorization (v4.2) is the only variant at parity with the raw LAPACK.gesv! this code historically used in every cell: -1.8% to +2.3% end-to-end, versus up to +5% for the pinned LUFactorization and up to +4.5% for the default algorithm choice (whose safety fallback adds an O(n^2) backup copy per refactorization). GESVFactorization also reproduces the gesv! results bit-for-bit, keeps the same per-call allocation bytes, and restores the historical SingularException throw on a singular denominator (the default algorithm's QR fallback resolved it silently instead). Requires LinearSolve 4.2 for GESVFactorization. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Fable 5 <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.
Switches
ExpMethodHigham2005Base's cached Padé denominator solve from LinearSolve's default algorithm toGESVFactorization(SciML/LinearSolve.jl#1074, v4.2.0): one combinedgesv!per refactorization, restoring raw-LAPACK parity at small n (−1.8% vs the originalgesv!code at n=5, ties within noise at n=10–250; bit-identical accuracy and allocation bytes across all 12 benchmark cells). Also restores the historicalSingularExceptioncontract — the default algorithm's QR safety-fallback silently resolved singular denominators.Compat:
LinearSolve = "4.2"— unmergeable until LinearSolve 4.2.0 tags (#1074). Full EU basictests pass locally against the dev'd branch (22 testsets, 1 pre-existing broken).🤖 Generated with Claude Code