Skip to content

Commit

Permalink
Update comments in GMRES and GPMR
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Feb 14, 2022
1 parent c98f337 commit 2191a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gmres.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function gmres!(solver :: GmresSolver{T,S}, A, b :: AbstractVector{T};
y[i] = y[i] - R[pos] * y[j] # yᵢ ← yᵢ - rᵢⱼyⱼ
pos = pos - j + 1
end
# Rₖ can be singular is the system is inconsistent
# Rₖ can be singular if the system is inconsistent
if abs(R[pos]) eps(T)
y[i] = zero(T)
else
Expand Down
2 changes: 1 addition & 1 deletion src/gpmr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function gpmr!(solver :: GpmrSolver{T,S}, A, B, b :: AbstractVector{T}, c :: Abs
zt[i] = zt[i] - R[pos] * zt[j] # ζᵢ ← ζᵢ - rᵢ.ⱼζⱼ
pos = pos - j + 1 # position of rᵢ.ⱼ₋₁
end
# Rₖ can be singular is the system is inconsistent
# Rₖ can be singular if the system is inconsistent
if abs(R[pos]) eps(T)
zt[i] = zero(T)
else
Expand Down

0 comments on commit 2191a4c

Please sign in to comment.