Skip to content

Invalidate sparsity pattern cache#50

Open
oleflb wants to merge 1 commit into
rpl-cmu:mainfrom
oleflb:fix/cache-invalidation
Open

Invalidate sparsity pattern cache#50
oleflb wants to merge 1 commit into
rpl-cmu:mainfrom
oleflb:fix/cache-invalidation

Conversation

@oleflb
Copy link
Copy Markdown
Contributor

@oleflb oleflb commented May 24, 2026

Currently all of the linear solvers cache the sparsity pattern.
I am not entirely sure how this was planned on your side, but for me this regularly panics when I update the graph with new factors between solver rounds.
I added a very simple invalidation, causing the sparsity pattern to be recomputed after each optimize call.

If you have better ideas on how to achieve invalidation I am open to suggestions!

@oleflb oleflb changed the title Invalidate symbolic cache Invalidate sparsity pattern cache May 24, 2026
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