Skip to content

Commit

Permalink
Update src/supported_operations.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 17, 2024
1 parent 13d9b84 commit b30cb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supported_operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ function relative_entropy(x::AbstractArray, y::AbstractExpr)
return RelativeEntropyAtom(constant(x), y)
end

relative_entropy(x::AbstractArray, y::AbstractArray) = sum(y .* log(x ./ y))
relative_entropy(x::AbstractArray, y::AbstractArray) = sum(y .* log.(x ./ y))

"""
Base.reshape(x::AbstractExpr, m::Int, n::Int)
Expand Down

0 comments on commit b30cb1d

Please sign in to comment.