Commit d9fd2c41 authored by Dahua Lin's avatar Dahua Lin

minor updates based on new version of PDMat

parent fc69f2b1
julia 0.3-
ArrayViews 0.4.8-
PDMats 0.2.2-
StatsBase 0.5.1-
PDMats 0.3-
StatsBase 0.6.9-
......@@ -5,7 +5,7 @@
function posterior_canon(prior::GenericMvNormal, ss::GenericMvNormalKnownSigmaStats)
invΣ0 = inv(prior.Σ)
μ0 = prior.μ
invΣp = add_scal(invΣ0, ss.invΣ, ss.tw)
invΣp = pdadd(invΣ0, ss.invΣ, ss.tw)
h = add!(invΣ0 * μ0, ss.invΣ * ss.sx)
return GenericMvNormalCanon(h, invΣp)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment