mcovalt / iluzero.jl Goto Github PK
View Code? Open in Web Editor NEWA Julia implementation of incomplete LU factorization with zero level of fill in.
License: MIT License
A Julia implementation of incomplete LU factorization with zero level of fill in.
License: MIT License
Thanks for the great package, this is a very useful tool!
I am having issues using the factorization for some matrices. I tried using the ilu0
factorization on a small matrix 10x10 with good condition number. The result is very different from what I obtain with the base \
operator. I have attached an example below:
using Random
Random.seed!(0)
n = 10
B = sprand(n,n,1.0) # works
B = sprand(n,n,0.9) # doesn't work
cond(Matrix(B))
lu_factorization = ilu0(B)
x0 = zeros(n)
r = rand(n)
ldiv!(x0, lu_factorization, r)
norm(B * x0 - r, Inf)
x1 = B \ r
norm(B * x1 - r, Inf)
norm(x0 - x1, Inf)
Interestingly when all the entries in the matrix are filled the results is correct.
I am not sure if I am missing something here, can you help me sort this issue out?
Thanks for your help!
Simon
How difficult would it be to accommodate CSR matrices? The advantage of
that storage format is that it is amenable to parallel processing with multiple threads,
which can be used to advantage in the preconditioned CG iteration.
Thank you kindly sir. It is very useful to me.
It would be nice to register this package. We can do an ILU factorization with zero fill-in of any matrix type (Float32, Float64, Float128, BigFloat..). It's not the case with ImcompleteLU
package.
It's a good preconditioner for iterative methods. I would like to use it in our package Krylov.jl.
Any chance to extend this to incomplete Cholesky decomposition?
In my C
implemetation I also implemented the ๐ approach.
Any chance to have that as well?
I find this part of the README pessimistic to the point that it might turn users away:
Why use ILUZero.jl? You probably shouldn't. Julia's built in factorization methods are much better.
The point of this package isn't to compete with (complete) factorization packages such as SuiteSparse. I feel the importance of LU(0) for preconditioning could be stressed instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.