Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
torfjelde and devmotion authored Apr 15, 2024
1 parent e4b7835 commit 7f86afc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/arraydist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/filldist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f86afc

Please sign in to comment.