Skip to content

Bundle shape info in SSMs#863

Merged
pnkraemer merged 5 commits into
mainfrom
bundle-shape-info-in-ssms
Apr 17, 2026
Merged

Bundle shape info in SSMs#863
pnkraemer merged 5 commits into
mainfrom
bundle-shape-info-in-ssms

Conversation

@pnkraemer

Copy link
Copy Markdown
Owner

Before: each SSM factorisation had its own version of "ravel", "shape", etc..
Now: We construct one central "ShapeInfo" object that collects ravelling, treedefs, etc., and pass them into each factorisation. This removed some duplication and is overall easier to read. This PR also improves the memory efficiency slightly because we only ever store shapes and dtypes of template arrays instead of the arrays.

@pnkraemer pnkraemer added the internals Improving the inner workings label Apr 17, 2026
@pnkraemer pnkraemer merged commit 97d02d7 into main Apr 17, 2026
10 checks passed
@pnkraemer pnkraemer deleted the bundle-shape-info-in-ssms branch April 17, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internals Improving the inner workings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant