From ef2182cfb7b7f003f8948caa8e39820c1c4523f1 Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Fri, 19 Jan 2024 20:52:14 +0100 Subject: [PATCH] Fix a first typo. --- src/manifolds/MultinomialSymmetric.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manifolds/MultinomialSymmetric.jl b/src/manifolds/MultinomialSymmetric.jl index 6cb231853a..02de20fc97 100644 --- a/src/manifolds/MultinomialSymmetric.jl +++ b/src/manifolds/MultinomialSymmetric.jl @@ -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] α = (I + p) \ sum(Y, dims=2) # Formula (49) from 1802.02628 return X .= Y .- (repeat(α, 1, n) .+ repeat(α', n, 1)) .* p