Skip to content

Commit 9b229f2

Browse files
authored
Merge pull request #9 from jkrch/master
Add 2-argument ldiv! - Thanks!
2 parents 53e3cd6 + d44641b commit 9b229f2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/ilu0.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,8 @@ function LinearAlgebra.ldiv!(u::AbstractArray{T,1}, precon::ILU0Preconditioner,
8585
end
8686
end
8787

88+
function LinearAlgebra.ldiv!(precon::ILU0Preconditioner, v::AbstractArray{T,1} where T)
89+
ldiv!(v, precon, v)
90+
end
91+
8892

src/jacobi.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ function LinearAlgebra.ldiv!(u::AbstractArray{T,1} where T, precon::JacobiPreco
3131
u[i]=invdiag[i]*v[i]
3232
end
3333
end
34+
35+
function LinearAlgebra.ldiv!(precon::JacobiPreconditioner, v::AbstractArray{T,1} where T)
36+
ldiv!(v, precon, v)
37+
end

0 commit comments

Comments
 (0)