Skip to content

Commit

Permalink
Fix custom Krylov.kref!
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 5, 2024
1 parent 12f302c commit bac94a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/custom_workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ function Krylov.kref!(n::Integer, x::MyVector{T}, y::MyVector{T}, c::T, s::T) wh
for j = 1:nx-1
x_ij = _x[i,j]
y_ij = _y[i,j]
_x[i,j] = c * _x[i,j] + s * _y[i,j]
_x[i,j] = conj(s) * _x[i,j] - c * _y[i,j]
_x[i,j] = c * x_ij + s * y_ij
_x[i,j] = conj(s) * x_ij - c * y_ij
end
end
return x, y
Expand Down

0 comments on commit bac94a1

Please sign in to comment.