From 27ef2508a27de067bfe299e44f0c3accbc4dcc8f Mon Sep 17 00:00:00 2001 From: Keita Nakamura Date: Fri, 17 Oct 2025 09:37:10 +0900 Subject: [PATCH] Fix Chebyshev iteration recurrence to use previous direction vector --- src/chebyshev.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chebyshev.jl b/src/chebyshev.jl index b41189a8..9c0f58b3 100644 --- a/src/chebyshev.jl +++ b/src/chebyshev.jl @@ -42,7 +42,7 @@ function iterate(cheb::ChebyshevIterable, iteration::Int=start(cheb)) else β = (cheb.λ_diff * cheb.α / 2) ^ 2 cheb.α = inv(cheb.λ_avg - β) - cheb.u .= cheb.c .+ β .* cheb.c + cheb.u .= cheb.c .+ β .* cheb.u end mul!(cheb.c, cheb.A, cheb.u)