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 79e7e03 commit c5751d4Copy full SHA for c5751d4
src/multivariate.jl
@@ -32,7 +32,7 @@ function TuringDirichlet(alpha::AbstractVector{T}) where {T <: Integer}
32
Tf = float(T)
33
TuringDirichlet(convert(AbstractVector{Tf}, alpha))
34
end
35
-TuringDirichlet(d::Integer, alpha::Integer) = TuringDirichlet(d, Float64(alpha))
+TuringDirichlet(d::Integer, alpha::Integer) = TuringDirichlet(d, float(alpha))
36
37
Distributions.Dirichlet(alpha::TrackedVector) = TuringDirichlet(alpha)
38
Distributions.Dirichlet(d::Integer, alpha::TrackedReal) = TuringDirichlet(d, alpha)
0 commit comments