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 36e4651 commit 2995791Copy full SHA for 2995791
src/mcmc/mh.jl
@@ -285,7 +285,9 @@ end
285
unvectorize(dists::AbstractVector) = length(dists) == 1 ? first(dists) : dists
286
287
# possibly unpack and reshape samples according to the prior distribution
288
-reconstruct(dist::Distribution, val::AbstractVector) = DynamicPPL.from_vec_transform(dist)(val)
+function reconstruct(dist::Distribution, val::AbstractVector)
289
+ return DynamicPPL.from_vec_transform(dist)(val)
290
+end
291
reconstruct(dist::AbstractVector{<:UnivariateDistribution}, val::AbstractVector) = val
292
function reconstruct(dist::AbstractVector{<:MultivariateDistribution}, val::AbstractVector)
293
offset = 0
0 commit comments