Skip to content

Commit 5dce6c6

Browse files
authored
Fix scalar getindex in GenerativeModels.jl (#40)
1 parent 7a7da44 commit 5dce6c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ConditionalDists"
22
uuid = "c648c4dd-c1e0-49a6-84b9-144ae7fd2468"
33
authors = ["Niklas Heim <niklas.heim@aic.fel.cvut.cz>"]
4-
version = "0.4.3"
4+
version = "0.4.4"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/batch_mvnormal.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ function Distributions.logpdf(d::BMN, x::AbstractMatrix{T}) where T<:Real
3636
n = size(d.μ,1)
3737
μ = mean(d)
3838
σ2 = var(d)
39-
-(vec(sum(((x - μ).^2) ./ σ2 .+ log.(σ2), dims=1)) .+ n*log(T(2π))) / 2
39+
-(vec(sum(((x - μ).^2) ./ σ2 .+ log.(σ2), dims=1)) .+ n*log(T(2π))) ./ 2
4040
end

0 commit comments

Comments
 (0)