From b5a64013f4109b4e9f17c0d839a0f2230ebfe412 Mon Sep 17 00:00:00 2001 From: thorek1 Date: Sun, 20 Oct 2024 22:25:12 +0200 Subject: [PATCH] fix wrong name in qme --- src/algorithms/quadratic_matrix_equation.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/quadratic_matrix_equation.jl b/src/algorithms/quadratic_matrix_equation.jl index 969b70e3..de2345bf 100644 --- a/src/algorithms/quadratic_matrix_equation.jl +++ b/src/algorithms/quadratic_matrix_equation.jl @@ -16,9 +16,9 @@ function solve_quadratic_matrix_equation(A::AbstractMatrix{R}, tol::AbstractFloat = 1e-14, verbose::Bool = false) where R <: Real if length(initial_guess) > 0 - guess_ϵ = ℒ.norm(A * initial_guess ^ 2 + B * initial_guess + C) / ℒ.norm(A * initial_guess ^ 2) + reached_tol = ℒ.norm(A * initial_guess ^ 2 + B * initial_guess + C) / ℒ.norm(A * initial_guess ^ 2) - if guess_ϵ < tol # 1e-12 is too large eps is too small + if reached_tol < tol # 1e-12 is too large eps is too small if verbose println("Quadratic matrix equation solver previous solution has tolerance: $reached_tol") end return initial_guess, true