-
Notifications
You must be signed in to change notification settings - Fork 38
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
LU decomposition #272
Comments
Yes please! I believe the issue is that LU is currently only implemented in LAPACK so a Julia native implementation would be fantastic |
I've looked at the code for LU decomposition in
|
I suggest you read the docs on LAPACK's gbtrf:
Yes since
Yes because you maintain bandedness if you do what LAPACK does.
No, still use LAPACK for BLAS types. Only use the Julia implementation for general types. You can use
I don't agree: we do allow overallocating storage, e.g., if the |
Hi, FYI: I did some similar job for dgemm etc in sparspak: https://github.com/PetrKryslUCSD/Sparspak.jl/blob/main/src/Utilities/GenericBlasLapackFragments.jl This was based on the netlib fortran code. |
I needed to invert large banded matrices, and I found that BandedMatrices.jl didn't support this operation. For example:
This uses a full matrix to store
L
, which is not good for me.Similarly, when using rational numbers, I found that
I have taken the liberty of implementing the functionality that I need outside of BandedMatrices.jl. See here for the functions I implemented.
The respective functionality is good enough for me, but is not quite generic. For example, I implemented
\
to solve a linear system, but not an in-placeldiv!
. These functions also don't support a banded RHS for\
.I would be happy to contribute this to
BandedMatrices.jl
. If you are interested, then please let me know how this could/should be integrated into your package. Otherwise, feel free to copy the code I wrote. This code is inspired (copied/translated) from Wikipedia (see the URL above), LAPACK (dtrsm), and the Julia LinearAlgebra package.The text was updated successfully, but these errors were encountered: