Skip to content

Add tests, improve README + docs - #40

Merged
timholy merged 2 commits into
mainfrom
teh/pingram
Aug 6, 2026
Merged

Add tests, improve README + docs#40
timholy merged 2 commits into
mainfrom
teh/pingram

Conversation

@timholy

@timholy timholy commented Aug 6, 2026

Copy link
Copy Markdown
Member
  • tests enforce the behavior of gramcover for fully-connected matrices
  • tweaks to the READM and documentation

timholy added 2 commits August 1, 2026 13:55
A single support component leaves the per-component construction nothing to
accumulate separately, so it returns exactly the global pair bound norm(a)*b.
Only the block-diagonal case was covered, where the two differ by a wide margin
and an inequality suffices; with one component the bound is attained, and an
inequality alone would also pass for a construction that gave up slack it did
not have to. The new testset states the agreement two-sided.

It also records why the bare `all(s .<= norm(a) .* b)` is not the assertion to
write: each sqrt is inflated by 1 + (n+3)*eps so the cover holds despite naive
summation, while the right-hand side carries no such margin, so the inequality
is false by a few ulps wherever it is tight. The tolerance is that inflation
plus the reference's own roundoff, and coverage is asserted separately, since
coverage is what the margin exists to deliver.

Assisted-by: Claude Opus 5 <noreply@anthropic.com>
Adds:
- hints on potential applications to the README
- polish on documentation phrasing
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.87%. Comparing base (3d5fbe3) to head (5f835ae).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   98.87%   98.87%           
=======================================
  Files          14       14           
  Lines        2390     2390           
=======================================
  Hits         2363     2363           
  Misses         27       27           

☔ 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.

@timholy
timholy merged commit ab1f4a4 into main Aug 6, 2026
5 checks passed
@timholy
timholy deleted the teh/pingram branch August 6, 2026 08:16
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.

1 participant