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 38c75aa commit b8e274cCopy full SHA for b8e274c
src/multivariate.jl
@@ -33,7 +33,7 @@ end
33
Distributions.params(d::TuringDiagMvNormal) = (d.m, d.σ)
34
Distributions.dim(d::TuringDiagMvNormal) = length(d.m)
35
Base.length(d::TuringDiagMvNormal) = length(d.m)
36
-Base.size(d::TuringDiagMvNormal) = (length(d), length(d))
+Base.size(d::TuringDiagMvNormal) = (length(d), )
37
function Distributions.rand(rng::Random.AbstractRNG, d::TuringDiagMvNormal, n::Int)
38
return d.m .+ d.σ .* randn(rng, length(d), n)
39
end
0 commit comments