Skip to content

Commit

Permalink
minor updates based on new version of PDMat
Browse files Browse the repository at this point in the history
  • Loading branch information
lindahua committed Oct 30, 2014
1 parent fc69f2b commit d9fd2c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.3-
ArrayViews 0.4.8-
PDMats 0.2.2-
StatsBase 0.5.1-
PDMats 0.3-
StatsBase 0.6.9-
2 changes: 1 addition & 1 deletion src/conjugates/mvnormal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9fd2c4

Please sign in to comment.