Skip to content

Commit e958f72

Browse files
committed
add missing MvLogNormal constructors
1 parent f8a72e6 commit e958f72

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/multivariate.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,18 @@ function MvLogNormal(
217217
)
218218
return TuringMvLogNormal(TuringMvNormal(m, D))
219219
end
220+
function MvLogNormal(
221+
m::TrackedVector{<:Real},
222+
D::Diagonal{T, <:AbstractVector{T}} where {T<:Real},
223+
)
224+
return TuringMvLogNormal(TuringMvNormal(m, D))
225+
end
226+
function MvLogNormal(
227+
m::AbstractVector{<:Real},
228+
D::Diagonal{T, <:AbstractVector{T}} where {T<:Real},
229+
)
230+
return MvLogNormal(MvNormal(m, D))
231+
end
220232

221233
# dense mean, diagonal covariance
222234
MvLogNormal(m::TrackedVector{<:Real}, σ::TrackedVector{<:Real}) = TuringMvLogNormal(TuringMvNormal(m, σ))

0 commit comments

Comments
 (0)