Skip to content

Commit 812002a

Browse files
committed
update basemeasure and basekernel
1 parent b4dff1d commit 812002a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/combinators/affine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ basemeasure(d::Affine) = affine(getfield(d, :f), basemeasure(d.parent))
204204
# example it wouldn't make sense to apply a log-Jacobian to a point measure
205205
basemeasure(d::Affine{N,L}) where {N, L<:Lebesgue} = weightedmeasure(-logjac(d), d.parent)
206206

207-
function basemeasure(d::Affine{N,L}) where {N, L<:PowerMeasure{typeof(identity), typeof(identity), <:Lebesgue}}
207+
function basemeasure(d::Affine{N,M}) where {N,L<:Lebesgue, M<:ProductMeasure{Returns{L}}}
208208
weightedmeasure(-logjac(d), d.parent)
209209
end
210210

src/kernel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function basekernel end
7171
basekernel(f) = basemeasure f
7272

7373
basekernel(k::Kernel) = kernel(basekernel(k.f), k.ops)
74-
basekernel(f::Returns) = f
74+
basekernel(f::Returns) = Returns(basemeasure(f.value))
7575

7676

7777
# export kernelize

0 commit comments

Comments
 (0)