Skip to content

Commit

Permalink
Merge pull request #9 from jkrch/master
Browse files Browse the repository at this point in the history
Add 2-argument ldiv! - Thanks!
  • Loading branch information
j-fu authored Mar 7, 2021
2 parents 53e3cd6 + d44641b commit 9b229f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ilu0.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,8 @@ function LinearAlgebra.ldiv!(u::AbstractArray{T,1}, precon::ILU0Preconditioner,
end
end

function LinearAlgebra.ldiv!(precon::ILU0Preconditioner, v::AbstractArray{T,1} where T)
ldiv!(v, precon, v)
end


4 changes: 4 additions & 0 deletions src/jacobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ function LinearAlgebra.ldiv!(u::AbstractArray{T,1} where T, precon::JacobiPreco
u[i]=invdiag[i]*v[i]
end
end

function LinearAlgebra.ldiv!(precon::JacobiPreconditioner, v::AbstractArray{T,1} where T)
ldiv!(v, precon, v)
end

0 comments on commit 9b229f2

Please sign in to comment.