You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the type is computed at runtime (with promote_type), but I could be wrong about that.
When all the arguments are of the same type, adding a method like NormalInverseGamma(::T, ::T, ::T, ::T) where {T<:Real}) gets rid of the type instability. Another possible fix would be to use the inner constructor with the explicit type parameter whenever possible (e.g., in posterior_canon, which is where I was bitten by this).
The text was updated successfully, but these errors were encountered:
I think this comes from having constructors like
ConjugatePriors.jl/src/normalinversegamma.jl
Lines 18 to 21 in 36fe174
where the type is computed at runtime (with
promote_type
), but I could be wrong about that.When all the arguments are of the same type, adding a method like
NormalInverseGamma(::T, ::T, ::T, ::T) where {T<:Real})
gets rid of the type instability. Another possible fix would be to use the inner constructor with the explicit type parameter whenever possible (e.g., inposterior_canon
, which is where I was bitten by this).The text was updated successfully, but these errors were encountered: