Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore Kockerols committed Jul 29, 2024
1 parent bb5a182 commit 142f895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lyapunov.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ function solve_lyapunov_equation(A::AbstractMatrix{Float64},
lyapunov_algorithm::Symbol = :doubling,
tol::AbstractFloat = 1e-12)
if A isa AbstractSparseMatrix
if length(A.nzval) / length(A) > .1 || sylvester_algorithm == :sylvester
if length(A.nzval) / length(A) > .1 || lyapunov_algorithm == :lyapunov
A = collect(A)
end
end

if C isa AbstractSparseMatrix
if length(C.nzval) / length(C) > .1 || sylvester_algorithm == :sylvester
if length(C.nzval) / length(C) > .1 || lyapunov_algorithm == :lyapunov
C = collect(C)
end
end
Expand Down

0 comments on commit 142f895

Please sign in to comment.