Skip to content

Bundle FM + Workspace as CachedFactoredMatrix - #19

Merged
timholy merged 1 commit into
masterfrom
teh/bundle
May 23, 2026
Merged

Bundle FM + Workspace as CachedFactoredMatrix#19
timholy merged 1 commit into
masterfrom
teh/bundle

Conversation

@timholy

@timholy timholy commented May 23, 2026

Copy link
Copy Markdown
Member

A small wrapper type that pairs a FactoredMatrix with a pre-allocated Workspace so they travel together through APIs that take a single matrix-like argument. Multiplications against a CachedFactoredMatrix automatically use the bundled Workspace as their cache, sparing callers from threading a separate cache argument through every call site.

Constraint documented in the docstring: the bundled Workspace has a single p, so the same cfm is usable for operations that all share the same outer dimension. Mixed outer dimensions need separate bundles.

A small wrapper type that pairs a `FactoredMatrix` with a pre-allocated
`Workspace` so they travel together through APIs that take a single
matrix-like argument.  Multiplications against a `CachedFactoredMatrix`
automatically use the bundled `Workspace` as their cache, sparing callers
from threading a separate cache argument through every call site.

Constraint documented in the docstring: the bundled `Workspace` has a
single `p`, so the same `cfm` is usable for operations that all share the
same outer dimension.  Mixed outer dimensions need separate bundles.

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

codecov Bot commented May 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bc35a68) to head (6467f91).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          105       126   +21     
=========================================
+ Hits           105       126   +21     

☔ View full report in Codecov by Sentry.
📢 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 ab100ab into master May 23, 2026
4 checks passed
@timholy
timholy deleted the teh/bundle branch May 23, 2026 11:51
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