Repository navigation
docs: design of the dense linear-algebra foundation (scipy.linalg side) - #92
Merged
Merged
Conversation
docs/design-linalg.md: exports of existing internals (lu, cho_*, banded and triangular solves, pivoted QR, hessenberg, schur, balance), matrix functions (expm, logm, sqrtm, fractional power, funm, signm, Frechet), tridiagonal and banded eigensolvers, QZ/ordqz, and the MATLAB delta. Records which Reference-LAPACK routines SciPy 1.18.1 reaches for each, the exactness tiers (integers vs the wheel, values bit-exact vs a reference-BLAS C oracle, tolerance vs the wheel), validation, performance, security, file layout and 21 ordered tasks. Co-Authored-By: Claude Opus 5.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.
Design only, no code:
docs/design-linalg.md, the plan for thescipy.linalgfunctions that docs/coverage.md slices 6-8 and the go-scikit roadmap ("Shared foundations", PLAN.md item 10) list as missing._matfuncs*.py,src/_matfuncs_expm.c,src/_matfuncs_sqrtm.c,_decomp*.py,_basic.py, the C++ batched LU/QR/Cholesky headers,special/_orthogonal.py,sparse/linalg/_onenormest.py; Reference-LAPACK v3.12.1dgees,dhseqr,iparmq,ilaenv,dtrsen,dtrsyl,dgges,dtgsen,dstevd,dsbevd,dstebz,dstein,dstemr,dgeqp3,dlapy2; Al-Mohy and Higham 2009 (expm) and 2011/2012 (logm); Deadman, Higham and Ralha (title page only). What was not obtained is listed in section 1.-ffp-contract=off, correctly rounded libm); tolerance against the wheel. Complex scalar functions wait for go-numerics/specialcmplx.expmadds A^6 to U when m = 13 (beta = 1at_matfuncs_expm.c:1294, 1513; the complex variants usebeta = 0). Measured against mpmath, the real path is about 100x less accurate than the complex one (2.6e-12 against 2.4e-14 at30*I + 0.1*randn(5)). The port fixes it as a documented departure. Not yet reported upstream.🤖 Generated with Claude Code