Skip to content

Commit

Permalink
Use H instead of T to denote the Hermitian transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 7, 2022
1 parent 29cd328 commit c8d522d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/krylov_processes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ function unsymmetric_lanczos(A, b::AbstractVector{FC}, c::AbstractVector{FC}, k:
vᵢ₊₁ = q = view(V,:,i+1)
uᵢ₊₁ = p = view(U,:,i+1)
if i == 1
cᵗb = @kdot(n, c, b)
βᵢ = (abs(cᵗb))
γᵢ = cᵗb / βᵢ
cᴴb = @kdot(n, c, b)
βᵢ = (abs(cᴴb))
γᵢ = cᴴb / βᵢ
vᵢ .= b ./ βᵢ
uᵢ .= c ./ conj(γᵢ)
end
Expand All @@ -141,9 +141,9 @@ function unsymmetric_lanczos(A, b::AbstractVector{FC}, c::AbstractVector{FC}, k:
S[i,i] = conj(αᵢ)
@kaxpy!(m, - αᵢ , vᵢ, q)
@kaxpy!(n, -conj(αᵢ), uᵢ, p)
pᵗq = @kdot(n, p, q)
βᵢ₊₁ = (abs(pᵗq))
γᵢ₊₁ = pᵗq / βᵢ₊₁
pᴴq = @kdot(n, p, q)
βᵢ₊₁ = (abs(pᴴq))
γᵢ₊₁ = pᴴq / βᵢ₊₁
vᵢ₊₁ .= q ./ βᵢ₊₁
uᵢ₊₁ .= p ./ conj(γᵢ₊₁)
T[i+1,i] = βᵢ₊₁
Expand Down

0 comments on commit c8d522d

Please sign in to comment.