Skip to content

Commit 3ba3bc3

Browse files
Merge pull request #100 from vpuri3/vp-ldiv-of-invpreconditioner
avoid ldiv of invpreconditioner
2 parents 1af5aac + 53ca23a commit 3ba3bc3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/preconditioners.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ struct InvPreconditioner{T}
2626
end
2727

2828
Base.eltype(A::InvPreconditioner) = Base.eltype(A.P)
29-
LinearAlgebra.ldiv!(A::InvPreconditioner, x) = mul!(x, A.P, x)
3029
LinearAlgebra.ldiv!(y, A::InvPreconditioner, x) = mul!(y, A.P, x)
3130
LinearAlgebra.mul!(y, A::InvPreconditioner, x) = ldiv!(y, A.P, x)

test/basictests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ end
208208
mul!(y, Pl, x); @test y s .* x
209209
mul!(y, Pr, x); @test y s .\ x
210210

211-
y .= x; ldiv!(Pl, x); @test x s .\ y
212-
y .= x; ldiv!(Pr, x); @test x s .* y
213-
214211
ldiv!(y, Pl, x); @test y s .\ x
215212
ldiv!(y, Pr, x); @test y s .* x
216213
end

0 commit comments

Comments
 (0)