diff --git a/src/families/location_scale.jl b/src/families/location_scale.jl index fa5fcaa4..66ea5cdb 100644 --- a/src/families/location_scale.jl +++ b/src/families/location_scale.jl @@ -67,6 +67,7 @@ Base.eltype(::Type{<:MvLocationScale{S, D, L}}) where {S, D, L} = eltype(D) function StatsBase.entropy(q::MvLocationScale) @unpack location, scale, dist = q n_dims = length(location) + # `convert` is necessary because `entropy` is not type stable upstream n_dims*convert(eltype(location), entropy(dist)) + logdet(scale) end