Skip to content

Commit

Permalink
refactor change of type parameter order for LocationScaleLowRank
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Nov 17, 2024
1 parent 03338d6 commit 233cffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/families/location_scale_low_rank.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ represented as follows:
```
"""
struct MvLocationScaleLowRank{
L,SD<:AbstractVector,SF<:AbstractMatrix,D<:ContinuousDistribution
D<:ContinuousDistribution,L,SD<:AbstractVector,SF<:AbstractMatrix
} <: ContinuousMultivariateDistribution
location::L
scale_diag::SD
Expand All @@ -30,7 +30,7 @@ Base.length(q::MvLocationScaleLowRank) = length(q.location)

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

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

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

0 comments on commit 233cffa

Please sign in to comment.