Skip to content

Commit

Permalink
is_flat returns true for Cholesky space and SPD with log-Cholesky met…
Browse files Browse the repository at this point in the history
…ric.
  • Loading branch information
Simon Jacobsson committed Nov 13, 2023
1 parent 5d267d5 commit ae8fe22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/manifolds/CholeskySpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ end
"""
is_flat(::CholeskySpace)
Return false. [`CholeskySpace`](@ref) is not a flat manifold.
Return true. [`CholeskySpace`](@ref) is a flat manifold.
"""
is_flat(M::CholeskySpace) = false
is_flat(M::CholeskySpace) = true

Check warning on line 137 in src/manifolds/CholeskySpace.jl

View check run for this annotation

Codecov / codecov/patch

src/manifolds/CholeskySpace.jl#L137

Added line #L137 was not covered by tests

@doc raw"""
log(M::CholeskySpace, X, p, q)
Expand Down
6 changes: 3 additions & 3 deletions src/manifolds/SymmetricPositiveDefiniteLogCholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ end
"""
is_flat(::MetricManifold{ℝ,<:SymmetricPositiveDefinite,LogCholeskyMetric})
Return false. [`SymmetricPositiveDefinite`](@ref) with [`LogCholeskyMetric`](@ref)
is not a flat manifold.
Return true. [`SymmetricPositiveDefinite`](@ref) with [`LogCholeskyMetric`](@ref)
is a flat manifold.
"""
is_flat(M::MetricManifold{ℝ,<:SymmetricPositiveDefinite,LogCholeskyMetric}) = false
is_flat(M::MetricManifold{ℝ,<:SymmetricPositiveDefinite,LogCholeskyMetric}) = true

Check warning on line 105 in src/manifolds/SymmetricPositiveDefiniteLogCholesky.jl

View check run for this annotation

Codecov / codecov/patch

src/manifolds/SymmetricPositiveDefiniteLogCholesky.jl#L105

Added line #L105 was not covered by tests

@doc raw"""
log(M::MetricManifold{ℝ,<:SymmetricPositiveDefinite,LogCholeskyMetric}, p, q)
Expand Down

0 comments on commit ae8fe22

Please sign in to comment.