@@ -54,30 +54,30 @@ function Distributions.rand!(
5454) where  {N}
5555    return  Distributions. rand! (rng, d. dist, x)
5656end 
57- Distributions. logpdf (d :: NoDist{<:Univariate} , :: Real ) =  0 
58- Distributions. logpdf (d :: NoDist{<:Multivariate} , :: AbstractVector{<:Real} ) =  0 
59- function  Distributions. logpdf (d :: NoDist{<:Multivariate} , x:: AbstractMatrix{<:Real} )
60-     return  zeros (Int , size (x, 2 ))
57+ Distributions. logpdf (:: NoDist{<:Univariate} , x :: Real ) =  zero ( eltype (x)) 
58+ Distributions. logpdf (:: NoDist{<:Multivariate} , x :: AbstractVector{<:Real} ) =  zero ( eltype (x)) 
59+ function  Distributions. logpdf (:: NoDist{<:Multivariate} , x:: AbstractMatrix{<:Real} )
60+     return  zeros (eltype (x) , size (x, 2 ))
6161end 
62- Distributions. logpdf (d :: NoDist{<:Matrixvariate} , :: AbstractMatrix{<:Real} ) =  0 
62+ Distributions. logpdf (:: NoDist{<:Matrixvariate} , x :: AbstractMatrix{<:Real} ) =  zero ( eltype (x)) 
6363Distributions. minimum (d:: NoDist ) =  minimum (d. dist)
6464Distributions. maximum (d:: NoDist ) =  maximum (d. dist)
6565
66- Bijectors. logpdf_with_trans (d :: NoDist{<:Univariate} , :: Real , :: Bool ) =  0 
66+ Bijectors. logpdf_with_trans (:: NoDist{<:Univariate} , x :: Real , :: Bool ) =  zero ( eltype (x)) 
6767function  Bijectors. logpdf_with_trans (
68-     d :: NoDist{<:Multivariate} , :: AbstractVector{<:Real} , :: Bool 
68+     :: NoDist{<:Multivariate} , x :: AbstractVector{<:Real} , :: Bool 
6969)
70-     return  0 
70+     return  zero ( eltype (x)) 
7171end 
7272function  Bijectors. logpdf_with_trans (
73-     d :: NoDist{<:Multivariate} , x:: AbstractMatrix{<:Real} , :: Bool 
73+     :: NoDist{<:Multivariate} , x:: AbstractMatrix{<:Real} , :: Bool 
7474)
75-     return  zeros (Int , size (x, 2 ))
75+     return  zeros (eltype (x) , size (x, 2 ))
7676end 
7777function  Bijectors. logpdf_with_trans (
78-     d :: NoDist{<:Matrixvariate} , :: AbstractMatrix{<:Real} , :: Bool 
78+     :: NoDist{<:Matrixvariate} , x :: AbstractMatrix{<:Real} , :: Bool 
7979)
80-     return  0 
80+     return  zero ( eltype (x)) 
8181end 
8282
8383Bijectors. bijector (d:: NoDist ) =  Bijectors. bijector (d. dist)
0 commit comments