There's a couple of functions in LinearAlgebra.jl around updating Cholesky decompositions:
lowrankupdate!
lowrandowndate!
You can find them starting here:
https://github.com/JuliaLang/LinearAlgebra.jl/blob/27b0f1321777fd2f935b8b9f1cefc61e12114b29/src/cholesky.jl#L882
This looks like a lot of mutating code, but would it be possible to use Accessors.jl to emulate this mutating behaviour? The annoying thing about lowrankupdate! is that it destroys the input vector, so the non-mutating versions lowrankupdate have to copy everything (hence allocations). Being able to get this to work for StaticArrays allows me to bypass these allocations and wierd side-effects. How feasible do you think this is?
There's a couple of functions in LinearAlgebra.jl around updating Cholesky decompositions:
lowrankupdate!lowrandowndate!You can find them starting here:
https://github.com/JuliaLang/LinearAlgebra.jl/blob/27b0f1321777fd2f935b8b9f1cefc61e12114b29/src/cholesky.jl#L882
This looks like a lot of mutating code, but would it be possible to use Accessors.jl to emulate this mutating behaviour? The annoying thing about
lowrankupdate!is that it destroys the input vector, so the non-mutating versionslowrankupdatehave to copy everything (hence allocations). Being able to get this to work for StaticArrays allows me to bypass these allocations and wierd side-effects. How feasible do you think this is?