Skip to content

Commit

Permalink
Reference Lanczos doesn't overwrite v
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Jan 6, 2025
1 parent c475263 commit d04ece1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/KPM/Lanczos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function lanczos(mulA!, mulS!, v; min_iters, resolution=Inf, lhs=zeros(length(v)
βs = Float64[]
lhs_adj_Q = Vector{ComplexF64}[]

v = copy(v)
vp = zero(v)
Sv = zero(v)
Svp = zero(v)
Expand Down

0 comments on commit d04ece1

Please sign in to comment.