Skip to content

Commit 89a0719

Browse files
committed
bugfix
1 parent ee9056a commit 89a0719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combinators/affine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ logdensity(d::Affine{(:σ,)}, x) = logdensity(d.parent, d.σ \ x)
4545
logdensity(d::Affine{(:ω,)}, x) = logdensity(d.parent, d.ω * x)
4646
logdensity(d::Affine{(:μ,)}, x) = logdensity(d.parent, x - d.μ)
4747

48-
basemeasure(d::Affine) = Affine(d.f, basemeasure(d.parent))
48+
basemeasure(d::Affine) = Affine(getfield(d, :f), basemeasure(d.parent))
4949

5050
basemeasure(d::Affine{N,L}) where {N, L<:Lebesgue} = d.parent
5151

0 commit comments

Comments
 (0)