Skip to content

Commit

Permalink
runs formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Jan 19, 2024
1 parent ef2182c commit caf28ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/manifolds/Multinomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function power_dimensions(M::MultinomialMatrices)
return (m,)
end


@doc raw"""
riemannian_gradient(M::MultinomialMatrices, p, Y; kwargs...)
Expand Down
8 changes: 4 additions & 4 deletions src/manifolds/MultinomialSymmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ function riemannian_Hessian!(M::MultinomialSymmetric, Y, p, G, H, X)
n = get_parameter(M.size)[1]
ov = ones(n) # \bf 1
I_p = lu(I .+ p)
α = I_p\*ov)
α = I_p \* ov)
α_sq = (repeat(α, 1, n) .+ repeat', n, 1))
γ = G .* p
δ = γ .- α_sq .* p
δ = γ .- α_sq .* p
γ_dot = H .* p + G .* X
α_dot = ( I_p \ γ_dot .- (I_p \ X)*(I_p \ γ) ) * ov
α_dot = (I_p \ γ_dot .- (I_p \ X) * (I_p \ γ)) * ov
δ_dot = γ_dot .- (repeat(α_dot, 1, n) .+ repeat(α_dot', n, 1)) .* p .- α_sq .* X
project!(M, Y, p, δ_dot .- 0.5 * ((δ .* X) ./ p) )
project!(M, Y, p, δ_dot .- 0.5 * ((δ .* X) ./ p))
return Y

Check warning on line 215 in src/manifolds/MultinomialSymmetric.jl

View check run for this annotation

Codecov / codecov/patch

src/manifolds/MultinomialSymmetric.jl#L204-L215

Added lines #L204 - L215 were not covered by tests
end

Expand Down

0 comments on commit caf28ea

Please sign in to comment.