Skip to content

Commit

Permalink
add the generic case for doubly stochastic (includes symmetric, too).
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Sep 12, 2021
1 parent 42875a6 commit 9769a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifolds/MultinomialDoublyStochastic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Given a tangent vector with respect to the metric from the embedding, the [`Eucl
the representer of a linear functional on the tangent space is adapted as ``Z = p .* X``, since
this “compensates” for the divsion by ``p`` in the Riemannian metric on the [`ProbabilitySimplex`](@ref)
"""
change_gradient(::MultinomialDoubleStochastic, ::EuclideanMetric, p, X) = p .* X
change_gradient(::AbstractMultinomialDoublyStochastic, ::EuclideanMetric, p, X) = p .* X

@doc raw"""
check_point(M::MultinomialDoubleStochastic, p)
Expand Down

0 comments on commit 9769a1a

Please sign in to comment.