Skip to content

Commit

Permalink
minor tweaks to improve type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Jun 22, 2024
1 parent ce5b604 commit d33ffaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/linearmixedmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ struct LinearMixedModel{T<:AbstractFloat} <: MixedModel{T}
sqrtwts::Vector{T}
parmap::Vector{NTuple{3,Int}}
dims::NamedTuple{(:n, :p, :nretrms),NTuple{3,Int}}
A::Vector{AbstractMatrix{T}} # cross-product blocks
L::Vector{AbstractMatrix{T}}
A::Vector{<:AbstractMatrix{T}} # cross-product blocks
L::Vector{<:AbstractMatrix{T}}
optsum::OptSummary{T}
end

Expand Down Expand Up @@ -408,7 +408,7 @@ function createAL(reterms::Vector{<:AbstractReMat{T}}, Xy::FeMat{T}) where {T}
end
end
end
return A, L
return identity.(A), identity.(L)
end

StatsAPI.deviance(m::LinearMixedModel) = objective(m)
Expand Down

0 comments on commit d33ffaa

Please sign in to comment.