diff --git a/src/arraydist.jl b/src/arraydist.jl index e540e08..867fdc0 100644 --- a/src/arraydist.jl +++ b/src/arraydist.jl @@ -3,7 +3,7 @@ Create a distribution from an array of distributions. """ -arraydist(dists::AbstractArray) = product_distribution(dists) +arraydist(dists::AbstractArray{<:Distribution}) = product_distribution(dists) # Univariate diff --git a/src/filldist.jl b/src/filldist.jl index 065bc71..65e0d6c 100644 --- a/src/filldist.jl +++ b/src/filldist.jl @@ -4,7 +4,7 @@ Create a product distribution using `FillArrays.Fill` as the array type. """ -filldist(d::Distribution, ns...) = product_distribution(Fill(d, ns...)) +filldist(d::Distribution, n1::Int, ns::Int...) = product_distribution(Fill(d, n1, ns...)) # Univariate