Skip to content

Commit 748b8a9

Browse files
committed
remove redundant _logpdf implementation
1 parent d915dce commit 748b8a9

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/families/location_scale.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ function Distributions.logpdf(q::MvLocationScale, z::AbstractVector{<:Real})
7575
sum(Base.Fix1(logpdf, dist), scale \ (z - location)) - logdet(scale)
7676
end
7777

78-
function Distributions._logpdf(q::MvLocationScale, z::AbstractVector{<:Real})
79-
@unpack location, scale, dist = q
80-
sum(Base.Fix1(logpdf, dist), scale \ (z - location)) - logdet(scale)
81-
end
82-
8378
function Distributions.rand(q::MvLocationScale)
8479
@unpack location, scale, dist = q
8580
n_dims = length(location)

test/interface/location_scale.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
@test eltype(logpdf(q, z)) == realtype
3636
end
3737

38-
@testset "_logpdf" begin
39-
z = rand(q)
40-
@test Distributions._logpdf(q, z) logpdf(q_true, z) rtol=realtype(1e-2)
41-
@test eltype(Distributions.logpdf(q, z)) == realtype
42-
end
43-
4438
@testset "entropy" begin
4539
@test eltype(entropy(q)) == realtype
4640
@test entropy(q) entropy(q_true)

0 commit comments

Comments
 (0)