Skip to content

Commit f80dc45

Browse files
committed
type stability
1 parent 0d0b62d commit f80dc45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/algorithms/lyapunov.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function solve_lyapunov_equation( A::Union{ℒ.Adjoint{T, Matrix{T}}, DenseMat
157157
# timer::TimerOutput = TimerOutput(),
158158
tol::AbstractFloat = 1e-14)::Tuple{Matrix{T}, Int, T} where T <: AbstractFloat
159159
𝐂 = try
160-
MatrixEquations.lyapd(A, C)
160+
MatrixEquations.lyapd(A, C)::Matrix{T}
161161
catch
162162
return C, 0, 1.0
163163
end

src/algorithms/sylvester.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ function solve_sylvester_equation(A::DenseMatrix{T},
10471047
.axpy!(-1, initial_guess, 𝐂¹)
10481048

10491049
𝐂 = try
1050-
MatrixEquations.sylvd(-A, B, 𝐂¹)
1050+
MatrixEquations.sylvd(-A, B, 𝐂¹)::Matrix{T}
10511051
catch
10521052
return C, 0, 1.0
10531053
end

0 commit comments

Comments
 (0)