-
-
Notifications
You must be signed in to change notification settings - Fork 75
Implement Butterfly Factorization method using RecursiveFactorization.jl #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@oscardssmith does this look good? |
B, U, V = cache.cacheval[2], cache.cacheval[3], cache.cacheval[4] | ||
if cache.isfresh | ||
@assert M==N "A must be square" | ||
U, V, F, out = RecursiveFactorization.🦋workspace(A, b, B, U, V, alg.thread) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this not just a struct and !
operation? It would be much easier to read. I assume this is all just in-place and non-allocating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as in make U, V, F, out
a struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
end | ||
end | ||
A, B, U, V, F = cache.cacheval | ||
sol = V * (F \ (U * b)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is allocating and not using TriangularSolve.jl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we found that TriangularSolve.jl was slower than this method, so we left it as is
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Implements a new
ButterflyFactorization()
algorithm