Skip to content

Commit 78e8370

Browse files
committed
fix typo
1 parent 5cfe9cb commit 78e8370

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/multivariate.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ function _logpdf(d::TuringMvLogNormal, x::AbstractVector{T}) where {T<:Real}
179179
end
180180
end
181181
function _logpdf(d::TuringMvLogNormal, x::AbstractMatrix{<:Real})
182-
if all(i -> DistributionsAD.insupport(dist, view(x, :, i)), axes(x, 2))
182+
if all(i -> DistributionsAD.insupport(d, view(x, :, i)), axes(x, 2))
183183
logx = log.(x)
184-
return DistributionsAD._logpdf(dist.normal, logx) - vec(sum(logx; dims = 1))
184+
return DistributionsAD._logpdf(d.normal, logx) - vec(sum(logx; dims = 1))
185185
else
186-
return [DistributionsAD._logpdf(dist, view(x, :, i)) for i in axes(x, 2)]
186+
return [DistributionsAD._logpdf(d, view(x, :, i)) for i in axes(x, 2)]
187187
end
188188
end
189189

0 commit comments

Comments
 (0)