Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle committed Jun 27, 2024
1 parent 96b290d commit 1ca1c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entropy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Computes the relative entropy D(`p`||`q`) = Σᵢpᵢlog(pᵢ/qᵢ) between two
Reference: [Relative entropy](https://en.wikipedia.org/wiki/Relative_entropy).
"""
function relative_entropy(base::Real, p::AbstractVector{T}, q::AbstractVector{S}) where {T<Real,S<:Real}
function relative_entropy(base::Real, p::AbstractVector{T}, q::AbstractVector{S}) where {T<:Real,S<:Real}
R = promote_type(T, S)
if length(p) != length(q)
throw(ArgumentError("`p` and q must have the same length."))
Expand Down

0 comments on commit 1ca1c06

Please sign in to comment.