Skip to content

Allow passing in allocs to Woodbury and SymWoodbury#49

Open
rafaqz wants to merge 4 commits intoJuliaLinearAlgebra:masterfrom
rafaqz:allocs
Open

Allow passing in allocs to Woodbury and SymWoodbury#49
rafaqz wants to merge 4 commits intoJuliaLinearAlgebra:masterfrom
rafaqz:allocs

Conversation

@rafaqz
Copy link
Copy Markdown

@rafaqz rafaqz commented Apr 24, 2025

If a woodbury matrix is used for few or only a single RHS solve, the cost of allocating temp arrays each time is mildly consequential.

This PR allows passing all allocations as an allocs keyword so they can be reused after updates to U/C/V etc.

At the same time I added an extra tmp variable so that the second ldiv! is non-allocating.

Closes #48

TODO: remove allocations in Cp definition

@timholy
Copy link
Copy Markdown
Member

timholy commented Jan 9, 2026

I've updated this PR to the latest master, which includes a Julia version bump to 1.10 and updates to a lot of the actions.

The tests still fail so the errors would need fixing before this can be merged.

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.

Allocations in second ldiv!

2 participants