Skip to content

Commit 27ef250

Browse files
committed
Fix Chebyshev iteration recurrence to use previous direction vector
1 parent 8ef6fe3 commit 27ef250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chebyshev.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function iterate(cheb::ChebyshevIterable, iteration::Int=start(cheb))
4242
else
4343
β = (cheb.λ_diff * cheb.α / 2) ^ 2
4444
cheb.α = inv(cheb.λ_avg - β)
45-
cheb.u .= cheb.c .+ β .* cheb.c
45+
cheb.u .= cheb.c .+ β .* cheb.u
4646
end
4747

4848
mul!(cheb.c, cheb.A, cheb.u)

0 commit comments

Comments
 (0)