Skip to content

Commit b8e274c

Browse files
committed
fixed bug in size(::TuringDiagMvNormal)
1 parent 38c75aa commit b8e274c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/multivariate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333
Distributions.params(d::TuringDiagMvNormal) = (d.m, d.σ)
3434
Distributions.dim(d::TuringDiagMvNormal) = length(d.m)
3535
Base.length(d::TuringDiagMvNormal) = length(d.m)
36-
Base.size(d::TuringDiagMvNormal) = (length(d), length(d))
36+
Base.size(d::TuringDiagMvNormal) = (length(d), )
3737
function Distributions.rand(rng::Random.AbstractRNG, d::TuringDiagMvNormal, n::Int)
3838
return d.m .+ d.σ .* randn(rng, length(d), n)
3939
end

0 commit comments

Comments
 (0)