Skip to content

Boundary block should use dense storage - #94

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ErikQQY:qqy/dense_boundary
Sep 19, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:mainfrom
ErikQQY:qqy/dense_boundary

Conversation

@ErikQQY

@ErikQQY ErikQQY commented Sep 18, 2026

Copy link
Copy Markdown
Member

QR updates on boundary block can make its associated low-rank factor largely dense. Keeping sparse storage then introduces expensive indexing, insertion, and allocation overhead.
The modification converts the boundary block to a dense Matrix, allowing efficient dense operations while preserving the banded main matrix.
For qr, the boundary block is copied to preserve the input. For qr!, convert(Matrix{T}, ...) reuses an existing dense buffer when possible. This improves factorization speed and reduces allocation overhead in the tested case.

@ChrisRackauckas
ChrisRackauckas merged commit 539f432 into SciML:main Sep 19, 2026
19 of 20 checks passed
@ErikQQY
ErikQQY deleted the qqy/dense_boundary branch September 19, 2026 19:45
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.

2 participants