Skip to content

Commit 233cffa

Browse files
committed
refactor change of type parameter order for LocationScaleLowRank
1 parent 03338d6 commit 233cffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/families/location_scale_low_rank.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ represented as follows:
1616
```
1717
"""
1818
struct MvLocationScaleLowRank{
19-
L,SD<:AbstractVector,SF<:AbstractMatrix,D<:ContinuousDistribution
19+
D<:ContinuousDistribution,L,SD<:AbstractVector,SF<:AbstractMatrix
2020
} <: ContinuousMultivariateDistribution
2121
location::L
2222
scale_diag::SD
@@ -30,7 +30,7 @@ Base.length(q::MvLocationScaleLowRank) = length(q.location)
3030

3131
Base.size(q::MvLocationScaleLowRank) = size(q.location)
3232

33-
Base.eltype(::Type{<:MvLocationScaleLowRank{L,SD,SF,D}}) where {L,SD,SF,D} = eltype(L)
33+
Base.eltype(::Type{<:MvLocationScaleLowRank{D,L,SD,SF}}) where {D,L,SD,SF} = eltype(L)
3434

3535
function StatsBase.entropy(q::MvLocationScaleLowRank)
3636
@unpack location, scale_diag, scale_factors, dist = q

0 commit comments

Comments
 (0)