Skip to content

Commit

Permalink
Update example2.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 22, 2023
1 parent acefe34 commit 53ef564
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paper/example2/example2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if CUDA.functional()

# Solve Py = x
function ldiv_ic0!(P, x, y, z)
ldiv!(z, LowerTriangular(P), x) # Forward substitution with L
ldiv!(y, LowerTriangular(P)', z) # Backward substitution with Lᴴ
L = LowerTriangular(P)
Lᴴ = adjoint(L)
ldiv!(z, L, x) # Forward substitution with L
ldiv!(y, Lᴴ, z) # Backward substitution with Lᴴ
return y
end

Expand Down

0 comments on commit 53ef564

Please sign in to comment.