Skip to content

Commit

Permalink
Fix doc strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Jan 20, 2024
1 parent aca6452 commit 1e9da05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/manifolds/SymplecticGrassmann.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ is a point on the [`SymplecticStiefel`](@ref) manifold and ``X,Y \in \mathrm{Hor
are horizontal tangent vectors. The formula reads according to Proposition Lemma 4.8 [BendokatZimmermann:2021](@cite).
```math
g^{\mathrm{SpGr}_p(X,Y) = \operatorname{tr}\bigl(
(p^{\mathrm{T}p)^{-1}X^{\mathrm{T}}(I_{2n} - pp^+)Y
g^{\mathrm{SpGr}}_p(X,Y) = \operatorname{tr}\bigl(
(p^{\mathrm{T}}p)^{-1}X^{\mathrm{T}}(I_{2n} - pp^+)Y
\bigr),
```
where ``I_{2n}`` denotes the identity matrix and ``(⋅)^+`` the [`symplectic_inverse`](@ref).
Expand Down
4 changes: 2 additions & 2 deletions src/manifolds/SymplecticGrassmannStiefel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Then the Riemannian gradient ``X = \operatorname{grad} f(p)`` is given by
X = J_{2n}^THJ_{2k}p^{\mathrm{T}}p - J_{2n}^TpJ_{2k}H^{\mathrm{T}}p,
```
where ``J_{2n}`` denotes the [`SymplecticElement`)(@ref), and
``H = (I_{2n} - pp^+)J_{2n}^{\mathrm{T}YJ``.
where ``J_{2n}`` denotes the [`SymplecticElement`](@ref), and
``H = (I_{2n} - pp^+)J_{2n}^{\mathrm{T}}YJ``.
"""
function riemannian_gradient(::SymplecticGrassmann, p, Y; kwargs...)
n, k = get_parameter(M.size)
Expand Down

0 comments on commit 1e9da05

Please sign in to comment.