Giter Site home page Giter Site logo

iluzero.jl's People

Contributors

amontoison avatar mcovalt avatar moyner avatar pazner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iluzero.jl's Issues

ilu0 returns wrong results for sparse matrix solve

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

Using this package with CSR matrices?

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.

Register this package?

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.

README too pessimistic?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.