Skip to content

Commit

Permalink
Fix the issue with the adjoint in JOSS
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 22, 2023
1 parent 5945d70 commit acefe34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,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 acefe34

Please sign in to comment.