Skip to content

Zero-fill block_starts instead of leaving unstored slots undef - #250

Merged
dlfivefifty merged 1 commit into
JuliaLinearAlgebra:masterfrom
nhz2:zero-fill-block-starts
Sep 28, 2026
Merged

dlfivefifty merged 1 commit into
JuliaLinearAlgebra:masterfrom
nhz2:zero-fill-block-starts

Conversation

@nhz2

@nhz2 nhz2 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

For a BlockSkylineMatrix with ragged block bandwidths, block_starts is a BandedMatrix with bandwidths (maximum(l), maximum(u)), so it has in-band slots for blocks that a narrower column does not store. These were allocated undef and never written, so reading them gave garbage. They now read as 0, like the out-of-band entries.

This is required for a more correct version of #234

I'm not seeing any performance regression on my machine.

Assisted-by: Claude Code (Opus 5.5)

For a BlockSkylineMatrix with ragged block bandwidths, block_starts is a
BandedMatrix with bandwidths (maximum(l), maximum(u)), so it has in-band
slots for blocks that a narrower column does not store. These were
allocated undef and never written, so reading them gave garbage. They now
read as 0, like the out-of-band entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.45%. Comparing base (7f4bcdb) to head (29989e5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #250   +/-   ##
=======================================
  Coverage   90.45%   90.45%           
=======================================
  Files          11       11           
  Lines        1142     1142           
=======================================
  Hits         1033     1033           
  Misses        109      109           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dlfivefifty
dlfivefifty merged commit f354d34 into JuliaLinearAlgebra:master Sep 28, 2026
16 checks passed
@nhz2
nhz2 deleted the zero-fill-block-starts branch September 28, 2026 15:12
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