Skip to content

Commit

Permalink
Fix a first typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Jan 19, 2024
1 parent 5bdc7a0 commit ef2182c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifolds/MultinomialSymmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ where ``I_n`` is teh ``n×n`` unit matrix and ``\mathbf{1}_n`` is the vector of
"""
project(::MultinomialSymmetric, ::Any, ::Any)

function project!(::MultinomialSymmetric, X, p, Y)
function project!(M::MultinomialSymmetric, X, p, Y)
n = get_parameter(M.size)[1]

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

View check run for this annotation

Codecov / codecov/patch

src/manifolds/MultinomialSymmetric.jl#L130-L131

Added lines #L130 - L131 were not covered by tests
α = (I + p) \ sum(Y, dims=2) # Formula (49) from 1802.02628
return X .= Y .- (repeat(α, 1, n) .+ repeat', n, 1)) .* p

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

View check run for this annotation

Codecov / codecov/patch

src/manifolds/MultinomialSymmetric.jl#L133

Added line #L133 was not covered by tests
Expand Down

0 comments on commit ef2182c

Please sign in to comment.