Skip to content

Commit

Permalink
fix: grad is a vector, not a scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimrais committed Dec 15, 2023
1 parent f05cfd3 commit 9ad7b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions/exponential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ end

getgradlogpartition(::NaturalParametersSpace, ::Type{Exponential}) = (η) -> begin
(η₁,) = unpack_parameters(Exponential, η)
return -1/η₁
return SA[-1/η₁]
end

getfisherinformation(::NaturalParametersSpace, ::Type{Exponential}) = (η) -> begin
Expand Down

0 comments on commit 9ad7b0a

Please sign in to comment.