We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e06fb commit 5111a87Copy full SHA for 5111a87
src/Serialization/services/SerializingDistributions.jl
@@ -24,7 +24,8 @@ function unpackDistribution(dtr::PackedZeroMeanDiagNormal)
24
return MvNormal(LinearAlgebra.Diagonal(map(abs2, sqrt.(dtr.diag))))
25
end # sqrt.(dtr.diag)
26
function unpackDistribution(dtr::PackedZeroMeanFullNormal)
27
- return MvNormal(reshape(dtr.cov, length(dtr.mu), :))
+ d = round(Int,sqrt(size(dtr.cov)[1]))
28
+ return MvNormal(reshape(dtr.cov, d, d))
29
end
30
unpackDistribution(dtr::PackedDiagNormal) = MvNormal(dtr.mu, sqrt.(dtr.diag))
31
function unpackDistribution(dtr::PackedFullNormal)
0 commit comments