Skip to content

Commit 1191e21

Browse files
committed
Bugfix symmetric matrix creation
1 parent 9940034 commit 1191e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function UnrestrictedStationary(dims::Dims; dependence::Symbol = :identified,
9797
F = UnrestrictedStationaryIdentified
9898
elseif dependence == :full
9999
ϕ = Matrix{type}(undef, R, R)
100-
Σ = Matrix{type}(I, R, R)
100+
Σ = Symmetric(Matrix{type}(I, R, R))
101101
F = UnrestrictedStationaryFull
102102
else
103103
throw(ArgumentError("dependence of factors $dependence not supported."))
@@ -131,7 +131,7 @@ function NelsonSiegelStationary(T::Integer, τ::AbstractVector; type::Type = Flo
131131
λ = 0.0609
132132
ϕ = Matrix{type}(undef, 3, 3)
133133
f = Matrix{type}(undef, 3, T)
134-
Σ = Matrix{type}(I, 3, 3)
134+
Σ = Symmetric(Matrix{type}(I, 3, 3))
135135

136136
return NelsonSiegelStationary(λ, τ, f, ϕ, Σ)
137137
end

0 commit comments

Comments
 (0)