Skip to content

Commit

Permalink
Fix scalar getindex in GenerativeModels.jl (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim authored Oct 16, 2020
1 parent 7a7da44 commit 5dce6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ConditionalDists"
uuid = "c648c4dd-c1e0-49a6-84b9-144ae7fd2468"
authors = ["Niklas Heim <[email protected]>"]
version = "0.4.3"
version = "0.4.4"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
2 changes: 1 addition & 1 deletion src/batch_mvnormal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ function Distributions.logpdf(d::BMN, x::AbstractMatrix{T}) where T<:Real
n = size(d.μ,1)
μ = mean(d)
σ2 = var(d)
-(vec(sum(((x - μ).^2) ./ σ2 .+ log.(σ2), dims=1)) .+ n*log(T(2π))) / 2
-(vec(sum(((x - μ).^2) ./ σ2 .+ log.(σ2), dims=1)) .+ n*log(T(2π))) ./ 2
end

2 comments on commit 5dce6c6

@nmheim
Copy link
Member Author

@nmheim nmheim commented on 5dce6c6 Oct 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/23027

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.4 -m "<description of version>" 5dce6c63ee67fa4f0f38c02ce2774ed89d19eb87
git push origin v0.4.4

Please sign in to comment.