Skip to content

Commit 499f295

Browse files
authored
Remove implementations of logpdf_with_trans for NoDist (#1849)
* Remove implementations of `logpdf_with_trans` for `NoDist` * Update Project.toml
1 parent 9f482f3 commit 499f295

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Turing"
22
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
3-
version = "0.21.7"
3+
version = "0.21.8"
44

55
[deps]
66
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/stdlib/distributions.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,3 @@ Distributions.logpdf(d::LogPoisson, k::Real) = _logpdf(d, k)
244244

245245
Base.rand(rng::Random.AbstractRNG, d::LogPoisson) = rand(rng, Poisson(d.λ))
246246
Distributions.sampler(d::LogPoisson) = sampler(Poisson(d.λ))
247-
248-
Bijectors.logpdf_with_trans(d::NoDist{<:Univariate}, ::Real, ::Bool) = 0
249-
Bijectors.logpdf_with_trans(d::NoDist{<:Multivariate}, ::AbstractVector{<:Real}, ::Bool) = 0
250-
function Bijectors.logpdf_with_trans(d::NoDist{<:Multivariate}, x::AbstractMatrix{<:Real}, ::Bool)
251-
return zeros(Int, size(x, 2))
252-
end
253-
Bijectors.logpdf_with_trans(d::NoDist{<:Matrixvariate}, ::AbstractMatrix{<:Real}, ::Bool) = 0

0 commit comments

Comments
 (0)